# jkque/laravel-nuxt-ui-starter-kit architecture

> Architecture diagram of the GitHub repository jkque/laravel-nuxt-ui-starter-kit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jkque/laravel-nuxt-ui-starter-kit
- Repository: https://github.com/jkque/laravel-nuxt-ui-starter-kit

## Overview

#### Purpose and Entry Points
This is a Laravel 12 starter kit for Inertia-driven Vue 3 applications: Laravel owns routing, authentication, persistence, queues, and server responses; Vue pages render the application shell and UI. HTTP begins at `public/index.php`, boots through `bootstrap/app.php`, and routes through `routes/web.php`, `routes/auth.php`, and `routes/settings.php`. The browser bundle starts at `resources/js/app.ts`; optional Inertia SSR starts at `resources/js/ssr.ts`.

#### HTTP and Inertia Boundary
Web routes dispatch Laravel controllers, which validate requests, enforce middleware, mutate models, and return Inertia responses. `app/Http/Middleware/HandleInertiaRequests.php` establishes shared Inertia data, while `app/Http/Middleware/HandleAppearance.php` manages UI appearance concerns. The Blade root `resources/views/app.blade.php` hosts the Inertia application rather than serving a separate API/frontend deployment.

#### Authentication and Account Security
Laravel Fortify is the authentication backbone, configured through `app/Providers/FortifyServiceProvider.php` and `config/fortify.php`. Auth controllers cover registration, session login/logout, password reset, email verification, and 2FA under `app/Http/Controllers/Auth/`. Account mutation endpoints are separated under `app/Http/Controllers/Settings/`, including profile, password, and security/2FA flows. The primary identity aggregate is `app/Models/User.php`.

#### Frontend Application Structure
Inertia resolves route-selected Vue pages from `resources/js/pages/`, including `Dashboard.vue`, `Customers.vue`, and `Inbox.vue`. Layout boundaries distinguish public/authenticated/settings experiences in `resources/js/layouts/Default.vue`, `resources/js/layouts/AuthLayout.vue`, and `resources/js/layouts/SettingsLayout.vue`. Reusable feature UI sits in `resources/js/components/`, while composables such as `resources/js/composables/useAuth.ts` centralize client-side page behavior.

#### Persistence, Sessions, Cache, and Jobs
The default deployment uses SQLite but Laravel database configuration permits MySQL or PostgreSQL through `config/database.php`. Schema establishes users, database cache, and database-backed jobs via `database/migrations/0001_01_01_000000_create_users_table.php` and related migrations. Sessions, cache, and queues are configurable at `config/session.php`, `config/cache.php`, and `config/queue.php`; the documented default is database-backed. Persistent application/private/public file storage is bounded under `storage/app/`.

#### Queue Operations and External Integrations
Laravel Horizon provides queue monitoring and authorization, configured by `config/horizon.php` and registered in `app/Providers/HorizonServiceProvider.php`. Queue workers process asynchronous jobs outside the request lifecycle. Mail behavior is configured at `config/mail.php`, supporting password reset and verification notifications; service credentials/integrations are bounded by `config/services.php`. Local development can run PHP, queue worker, logs, and Vite concurrently; Docker-based development is available via `docker-compose.yml`.

#### Build and Delivery Model
Vite compiles TypeScript, Vue, Tailwind CSS, and Nuxt UI assets using `vite.config.ts`, with frontend dependencies declared in `package.json`. Laravel PHP dependencies and runtime scripts are declared in `composer.json`. In production, Laravel serves the compiled Inertia app; SSR is an optional Node-rendering path rather than a separate Nuxt application.

Main entry points: [`app/Http/Controllers/Controller.php`](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Http/Controllers/Controller.php) (HTTP controllers), [`app/Models/User.php`](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Models/User.php) (User identity), [`resources/js/app.ts`](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/app.ts) (Inertia Vue app), [`resources/js/pages/Dashboard.vue`](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/pages/Dashboard.vue) (Route-selected pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP & Inertia"]
  node_browser(("Browser<br/>client"))
  node_public_index["PHP entry point<br/>Laravel entry<br/>[index.php]"]
  node_bootstrap["Application bootstrap<br/>Laravel bootstrap<br/>[app.php]"]
  node_routes["Web, auth & settings routes<br/>route definitions<br/>[web.php]"]
  node_controllers["HTTP controllers<br/>controller layer<br/>[Controller.php]"]
  node_inertia_middleware["Inertia middleware<br/>shared props middleware"]
  node_blade_root["Inertia Blade root<br/>Blade host<br/>[app.blade.php]"]
end

subgraph group_auth["Identity & Accounts"]
  node_fortify["Laravel Fortify<br/>auth backend"]
  node_user["User identity<br/>Eloquent model<br/>[User.php]"]
end

subgraph group_frontend["Vue Client"]
  node_client_app["Inertia Vue app<br/>TypeScript entry<br/>[app.ts]"]
  node_vue_pages["Route-selected pages<br/>Vue pages<br/>[Dashboard.vue]"]
  node_layouts["Application layouts<br/>Vue layouts<br/>[Default.vue]"]
  node_vite["Vite asset pipeline<br/>frontend build<br/>[vite.config.ts]"]
  node_ssr["Optional Inertia SSR<br/>Node SSR entry<br/>[ssr.ts]"]
end

subgraph group_platform["Persistence & Operations"]
  node_database[("Application database<br/>SQLite / SQL store<br/>[database.php]")]
  node_migrations["Database schema<br/>Laravel migrations"]
  node_queue["Database queue<br/>async job queue<br/>[queue.php]"]
  node_horizon["Horizon workers & monitoring<br/>queue operations<br/>[horizon.php]"]
  node_mail_services{{"Mail & service integrations<br/>external integration config<br/>[mail.php]"}}
  node_storage[("Application file storage<br/>persistent files<br/>[filesystems.php]")]
end

node_browser -->|"HTTP request"| node_public_index
node_public_index -->|"boots"| node_bootstrap
node_bootstrap -->|"dispatches"| node_routes
node_routes -->|"maps requests"| node_controllers
node_controllers -->|"returns Inertia through"| node_inertia_middleware
node_inertia_middleware -->|"shares props to"| node_blade_root
node_blade_root -->|"hosts"| node_client_app
node_client_app -->|"resolves"| node_vue_pages
node_vue_pages -->|"renders within"| node_layouts
node_vite -->|"builds"| node_client_app
node_ssr -.->|"optionally renders"| node_vue_pages
node_controllers -->|"auth flows"| node_fortify
node_fortify -->|"authenticates"| node_user
node_controllers -->|"reads and mutates"| node_user
node_user -->|"persists in"| node_database
node_migrations -->|"defines schema"| node_database
node_controllers -->|"dispatches jobs"| node_queue
node_horizon -->|"processes and monitors"| node_queue
node_queue -->|"delivers notifications"| node_mail_services
node_controllers -->|"uses"| node_storage

click node_public_index "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/public/index.php"
click node_bootstrap "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/bootstrap/app.php"
click node_routes "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/routes/web.php"
click node_controllers "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Http/Controllers/Controller.php"
click node_inertia_middleware "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Http/Middleware/HandleInertiaRequests.php"
click node_blade_root "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/views/app.blade.php"
click node_fortify "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Providers/FortifyServiceProvider.php"
click node_user "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Models/User.php"
click node_client_app "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/app.ts"
click node_vue_pages "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/pages/Dashboard.vue"
click node_layouts "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/layouts/Default.vue"
click node_vite "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/vite.config.ts"
click node_database "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/database.php"
click node_migrations "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/database/migrations/0001_01_01_000000_create_users_table.php"
click node_queue "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/queue.php"
click node_horizon "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/horizon.php"
click node_mail_services "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/mail.php"
click node_storage "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/filesystems.php"
click node_ssr "https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/ssr.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_browser,node_public_index,node_bootstrap,node_routes,node_controllers,node_inertia_middleware,node_blade_root toneBlue
class node_fortify,node_user toneAmber
class node_client_app,node_vue_pages,node_layouts,node_vite,node_ssr toneMint
class node_database,node_migrations,node_queue,node_horizon,node_mail_services,node_storage toneRose
```

## Components

### HTTP & Inertia

Laravel request lifecycle and Inertia response boundary.

- **Browser**: client
- [PHP entry point](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/public/index.php): Laravel entry · `public/index.php`
- [Application bootstrap](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/bootstrap/app.php): Laravel bootstrap · `bootstrap/app.php`
- [Web, auth & settings routes](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/routes/web.php): route definitions · `routes/web.php`
- [HTTP controllers](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Http/Controllers/Controller.php): controller layer · Validates requests, applies middleware, and returns Inertia responses. · `app/Http/Controllers/Controller.php`
- [Inertia middleware](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Http/Middleware/HandleInertiaRequests.php): shared props middleware · `app/Http/Middleware/HandleInertiaRequests.php`
- [Inertia Blade root](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/views/app.blade.php): Blade host · `resources/views/app.blade.php`

### Identity & Accounts

Fortify-backed authentication and account security.

- [Laravel Fortify](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Providers/FortifyServiceProvider.php): auth backend · Provides registration, sessions, reset, verification, and 2FA. · `app/Providers/FortifyServiceProvider.php`
- [User identity](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/app/Models/User.php): Eloquent model · `app/Models/User.php`

### Vue Client

Inertia Vue application, pages, and layouts.

- [Inertia Vue app](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/app.ts): TypeScript entry · `resources/js/app.ts`
- [Route-selected pages](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/pages/Dashboard.vue): Vue pages · Dashboard, customers, inbox, and account experiences. · `resources/js/pages/Dashboard.vue`
- [Application layouts](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/layouts/Default.vue): Vue layouts · Public, authenticated, and settings shells. · `resources/js/layouts/Default.vue`
- [Vite asset pipeline](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/vite.config.ts): frontend build · Builds Vue, TypeScript, Tailwind, and UI assets. · `vite.config.ts`
- [Optional Inertia SSR](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/resources/js/ssr.ts): Node SSR entry · Optional Node rendering path, not a separate application. · `resources/js/ssr.ts`

### Persistence & Operations

Database-backed state, async work, and external delivery.

- [Application database](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/database.php): SQLite / SQL store · SQLite by default; MySQL and PostgreSQL are supported. · `config/database.php`
- [Database schema](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/database/migrations/0001_01_01_000000_create_users_table.php): Laravel migrations · Creates users, cache, and database job tables. · `database/migrations/0001_01_01_000000_create_users_table.php`
- [Database queue](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/queue.php): async job queue · `config/queue.php`
- [Horizon workers & monitoring](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/horizon.php): queue operations · Authorizes monitoring and processes jobs outside requests. · `config/horizon.php`
- [Mail & service integrations](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/mail.php): external integration config · Delivers reset and verification notifications. · `config/mail.php`
- [Application file storage](https://github.com/jkque/laravel-nuxt-ui-starter-kit/blob/main/config/filesystems.php): persistent files · Private and public application files. · `config/filesystems.php`

## Connections

- Browser → PHP entry point: HTTP request
- PHP entry point → Application bootstrap: boots
- Application bootstrap → Web, auth & settings routes: dispatches
- Web, auth & settings routes → HTTP controllers: maps requests
- HTTP controllers → Inertia middleware: returns Inertia through
- Inertia middleware → Inertia Blade root: shares props to
- Inertia Blade root → Inertia Vue app: hosts
- Inertia Vue app → Route-selected pages: resolves
- Route-selected pages → Application layouts: renders within
- Vite asset pipeline → Inertia Vue app: builds
- Optional Inertia SSR → Route-selected pages: optionally renders
- HTTP controllers → Laravel Fortify: auth flows
- Laravel Fortify → User identity: authenticates
- HTTP controllers → User identity: reads and mutates
- User identity → Application database: persists in
- Database schema → Application database: defines schema
- HTTP controllers → Database queue: dispatches jobs
- Horizon workers & monitoring → Database queue: processes and monitors
- Database queue → Mail & service integrations: delivers notifications
- HTTP controllers → Application file storage: uses
