Laravel Authentication with Laravel UI Auth Scaffolding

Using laravel 9 authentication using ui auth example tutorial you will see how to install Auth scaffolding with laravel ui pakage. laravel ui package is best for authentication scaffolding to create simple ui, easy to install and generate bootstrap ui as well.

You can use User Authentication using UI auth package in larfavel 7, laravel 8 or laravel 9 version.

Step 1: Install Laravel App

First we need to install a new laravel app using the following command:

composer create-project --prefer-dist laravel/laravel laravel-auth-ui

Now go inside the project:

cd laravel-auth-ui

Step 2: Set Up Database Credentials

Now setup the database credentials to using update the database credentials in .env file.


Step 3: Install Laravel UI & Auth Scaffolding

Now install the laravel ui package using the below command:

composer require laravel/ui

Now you can install the following commands as per your requirements:

artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth

Step 4: Install npm Pacakges

Now install the npm packages just copy and paste in your terminal;

npm install && npm run dev

Step 5: Run Development Server

After that all things happen now run the migrate command to generate authentication database columns using the following command:

php artisan migrate

Now run the this command and test the authentication process:

php artisan serve

Now you can copy the url and put in browser and see the laravel authentication process using laravel UI package;


I hope you enjoy with this example.

Leave a Comment