This is a practical tutorial. We will create a project with Laravel in version 11 and integrate the base auth verification.
Create a Laravel project using composer
composer create-project --prefer-dist laravel/laravel laravel-auth-bootstrap
Select the No starter kit
cd laravel-auth-bootstrap
composer require laravel/ui
php artisan ui bootstrap --auth
confirm to overwrite the views and that's it.
Create the register and login views
npm install && npm run dev
Create a database and add the name in the .env file
php artisan migrate
Now you can review the views with the following command
php artisan serve
You must have these screens.
Any questions or errors when doing this tutorial, do not hesitate to write. I will gladly help you.
Thanks for reading, happy coding!
The above is the detailed content of Tutorial Laravel Auth con Bootstrap. For more information, please follow other related articles on the PHP Chinese website!