In this tutorial I will show you how to install and use the Laravel auth UI.
Step 1. Requirement: - You need to have PHP , Composer , and a web server like Apache or Nginx installed on your computer. - You also need a database server MySQL , PostgreSQL , SQLite , etc installed and configured.
Step 2. Install Laravel: Open your terminal and run the following command to create a new Laravel project:
composer create-project --prefer-dist laravel/laravel project-name
Step 3: Install Laravel UI
We need to install laravel ui for creating auth scaffold command to create a login, register, and dashboard.
composer require laravel/ui
Step 4: Step up Auth Scaffolding
Run the following command if you need laravel authentication with bootstrap:
php artisan ui bootstrap php artisan ui bootstrap --auth
Run the following command if you need laravel authentication with Vue:
php artisan ui vue php artisan ui vue --auth
Run the following command if you need laravel authentication with React:
php artisan ui react php artisan ui react --auth
Step 5: You need to install first node npm if you do not have node npm package then install first other wise Laravel mix not working .
npm install && npm run dev
Step 6: Migrate your database
php artisan migrate
Step 7: All done now start a server
php artisan serve