There are multiple ways of creating a New Laravel Project. You can do it via the composer or via the Laravel installer, my preferred way of doing it is the latter. But just creating a simple user-facing project doesn’t help.
In almost every meaningful project, you need some sort of authenticated area, a backend. Laravel provides multiple starter kits in order to generate simple authentication scaffolding. And with every new version of Laravel, a new one is launched. In one of our previous posts, we saw how to setup TailwindCSS in a new Laravel project. This project also generated the TailwindCSS based authentication scaffolding.
My favorite, however, even if it is old now, is Laravel Breeze. Works for most of my projects.
Setting up Laravel Breeze in a New Laravel Project
The process is quite simple. This also assumes, you already know how to create a new Laravel project. If you don’t, first check this out and create your new Laravel Project.
Once your new Laravel Project is created, we can add the Laravel Breeze scaffolding by going inside the project’s root directory and then running the commands mentioned below, in the given sequence:
composer require laravel/breeze --dev
This will bring in the laravel breeze package into your project.
php artisan breeze:install
This command will publish all the necessary views, routes, controllers, etc.
npm run dev
Finally, install all the Node packages and then generate the compiled resources files.
Once you are done with this, you can run
php artisan serve
If you want to download this minimalistic starter kit, you can do so, here.