In this article, we will see the laravel 10 bootstrap auth scaffolding. Here, we will learn about how to install bootstrap auth scaffolding in laravel 10 and laravel 11. So, you can understand the concept of installing Bootstrap 5 in laravel 10 and laravel 11.
Laravel gives a UI package for the easy step of auth scaffolding. Laravel UI provides simple authentication features including login, registration, password reset, email verification, and password confirmation using Bootstrap, react, and vue.
So, let's see bootstrap auth scaffolding in laravel 10, laravel 10 authentication, how to create a login and register in laravel 10/11, and laravel 11 login and registration with auth.
In this step, we will install the laravel 10/11 application using the following command.
composer create-project laravel/laravel laravel_10_bootstrap_auth_example
Now, we will install laravel UI using the following composer command.
composer require laravel/ui
After that, we will create bootstrap auth scaffolding using the following command.
php artisan ui bootstrap
OR
php artisan ui bootstrap --auth
After that, we will install npm dependencies using the below command. It can generate CSS and JS files.
npm install && npm run dev
Then, we will migrate the table to the database using the below command.
php artisan migrate
Now, we will run laravel 10 bootstrap auth scaffolding using the following command.
php artisan serve
Then, Goto the below URL and check the output.
Output:
Dashboard Page:
Login Page:
You might also like: