How jkque/laravel-nuxt-ui-starter-kit works
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: Controller.php HTTP controllers · User.php User identity · app.ts Inertia Vue app · Dashboard.vue Route-selected pages
Components 20
HTTP & Inertia
Laravel request lifecycle and Inertia response boundary.
- Browser
- PHP entry point
public/index.php - Application bootstrap
bootstrap/app.php - Web, auth & settings routes
routes/web.php - HTTP controllers · Validates requests, applies middleware, and returns Inertia responses.
app/Http/Controllers/Controller.php - Inertia middleware
app/Http/Middleware/HandleInertiaRequests.php - Inertia Blade root
resources/views/app.blade.php
Identity & Accounts
Fortify-backed authentication and account security.
- Laravel Fortify · Provides registration, sessions, reset, verification, and 2FA.
app/Providers/FortifyServiceProvider.php - User identity
app/Models/User.php
Vue Client
Inertia Vue application, pages, and layouts.
- Inertia Vue app
resources/js/app.ts - Route-selected pages · Dashboard, customers, inbox, and account experiences.
resources/js/pages/Dashboard.vue - Application layouts · Public, authenticated, and settings shells.
resources/js/layouts/Default.vue - Vite asset pipeline · Builds Vue, TypeScript, Tailwind, and UI assets.
vite.config.ts - Optional Inertia SSR · Optional Node rendering path, not a separate application.
resources/js/ssr.ts
Persistence & Operations
Database-backed state, async work, and external delivery.
- Application database · SQLite by default; MySQL and PostgreSQL are supported.
config/database.php - Database schema · Creates users, cache, and database job tables.
database/migrations/0001_01_01_000000_create_users_table.php - Database queue
config/queue.php - Horizon workers & monitoring · Authorizes monitoring and processes jobs outside requests.
config/horizon.php - Mail & service integrations · Delivers reset and verification notifications.
config/mail.php - Application file storage · Private and public application files.
config/filesystems.php
Connections 20
- 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