Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/usetitanium/inertia
https://github.com/usetitanium/inertia
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/usetitanium/inertia
- Owner: usetitanium
- License: mit
- Created: 2020-07-09T08:07:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T07:44:42.000Z (about 4 years ago)
- Last Synced: 2024-04-10T02:47:01.682Z (7 months ago)
- Language: PHP
- Size: 43.9 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-inertiajs - Titanium - Laravel front-end preset with Tailwind CSS, Inertia.js and Vue.js. (Resources / Presets)
README
# Inertia / Vue preset
A Laravel frontend preset for [inertiajs](https://inertiajs.com/) and [Vue](https://vuejs.org/).
## Titanium
[Titanium](https://usetitanium.com/) is a set of free/paid starter kits for Laravel.
## Installation
```
composer require inertiajs/inertia-laravel tightenco/ziggy laravel/ui titanium/inertia
php artisan ui inertia
npm install
npm run dev
```## Options
### Auth
To scaffold authentication use the `--auth` flag.
```
php artisan ui inertia --auth
```### Adapter
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
```## Laravel's authentication options
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
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](https://laravel.com/docs/7.x/verification) to see which changes needs to be implemented.
The email verification view is included in this kit.
### Password confirmation
The password confirmation view is included in this kit.
To enable password confirmation for a sensitive route add the `password.confirm` middleware.
```php
Route::get('/secret-route', function () {
//
})->middleware(['auth', 'password.confirm']);
```