To set up authentication without using the Laravel starter kit, you can follow these steps:
- Install the Laravel UI package using Composer:
composer require laravel/ui
- Generate the authentication scaffolding using the
uicommand:
php artisan ui vue --auth
This will generate the necessary views and routes for authentication using Vue.js as the frontend framework. If you prefer to use another frontend framework, you can replace vue with react or bootstrap.
- Run the migration to create the users table:
php artisan migrate
-
Customize the authentication views in the
resources/views/authdirectory to match your custom UI. -
Customize the authentication logic in the
app/Http/Controllers/Authdirectory to handle your custom login and registration logic.
That's it! You should now have a custom authentication system in your Laravel 10 project.