I face the following image every time I want to start a new Laravel 8 project with authentication routes set up using the laravel/ui package and Bootstrap scaffolding.
Meaning that the Bootstrap is not yet loading up! Therefore, I have to re-run php artisan UI bootstrap
& npm install && npm run dev
to correctly set them up.
Here are the steps that I use for creating a new Laravel 8 project:
Install LARAVEL: laravel new [yourprojectname]
Install LARAVEL UI Package: composer require laravel/ui
Generate UI Bootstrap: php artisan ui bootstrap
Generate Auth Scaffolding: php artisan ui bootstrap --auth
Install NPM Dependencies: npm install && npm run dev
Running LARAVEL: php artisan serve
But now I want to get this thing straight in my head so I won't have to re-run the codes anymore. I mean, what are the correct step-by-step commands for running to have a complete and ready project?
php artisan ui bootstrap
andphp artisan ui bootstrap --auth
at the same time, like this :php artisan ui bootstrap --auth
– Charmer