A Laravel frontend preset for inertiajs and Vue.
Titanium is a set of free/paid starter kits for Laravel.
composer require inertiajs/inertia-laravel tightenco/ziggy laravel/ui titanium/inertia
php artisan ui inertia
npm install
npm run dev
To scaffold authentication use the --auth
flag.
php artisan ui inertia --auth
To specify which client-side adapter you are using for Inertia use the --option
parameter.
Currently vue
and react
are supported.
php artisan ui inertia --option vue
With Laravel's default authentication it's possible to enable things like email verification and password confirmation. This is also possible using this preset.
Email verification with Inertia works the exact same way as it does in the default Laravel authentication package. It requires a few changes to the User
model and to the database table. Follow the steps in the official Laravel documentation to see which changes needs to be implemented.
The email verification view is included in this kit.
The password confirmation view is included in this kit.
To enable password confirmation for a sensitive route add the password.confirm
middleware.
Route::get('/secret-route', function () {
//
})->middleware(['auth', 'password.confirm']);