Install Bootstrap
To install bootstrap in your Laravel project, execute the following Laravel UI composer package in Visual Studio Code built-in Terminal
composer require laravel/ui
Once the above code is successfully install, then we are ready to bootstrap in our application. Below code install bootstrap with authentication
php artisan ui bootstrap --auth
Once it is installed, now it is time to install npm and run dev command
npm install
npm run dev
If error on npm run dev
, ran that command again. Once successful, you will screen as below.
Remove the following code from app.blade.php which is located on resources->views->layouts. We do not want user to register by themselves, instead we want the system administrator (who has permission) to create user accounts and their permissions.
You also need to delete RegisterController.php from app->Http->Controllers->Auth->RegisterController.php