DEV Community

Cover image for How To Install Bootstrap Auth Scaffolding in a Laravel 12
Msh Sayket
Msh Sayket

Posted on

How To Install Bootstrap Auth Scaffolding in a Laravel 12

In this Tutorial, I will show how to install Bootstrap auth scaffolding in a Laravel 12 application.

Laravel provides a UI package for the easy setup of auth scaffolding. Laravel UI offers simple authentication features, including login, registration, password reset, email verification, and password confirmation, using Bootstrap, React, and Vue. You Can Learn How to send email using a Gmail account in laravel 12

In this tutorial, I will provide you with simple steps on how to install Bootstrap 5 and how to create auth scaffolding using Bootstrap 5 in Laravel 12.

How To Install Bootstrap Auth Scaffolding in a Laravel 12 Example

So, let’s follow the steps below:

Install Laravel 12

This step is not required; however, if you have not created the Laravel app, then you may go ahead and execute the below command:

laravel new example-app
Enter fullscreen mode Exit fullscreen mode

Install Laravel UI

Let’s run the below command to install the Laravel UI package:

composer require laravel/ui
Enter fullscreen mode Exit fullscreen mode

Next, you have to install the Laravel UI package command for creating auth scaffolding using Bootstrap 5. So let’s run the below command:

php artisan ui bootstrap
Enter fullscreen mode Exit fullscreen mode

OR

php artisan ui bootstrap --auth
Enter fullscreen mode Exit fullscreen mode

Now, let’s run the below command to install npm:

npm install
npm run dev
Enter fullscreen mode Exit fullscreen mode

It will generate CSS and JS min files. You Can Read More From DevScriptSchool

Top comments (0)