Adventures in learning Tailwind, Alpine, Laravel and Livewire
22 Feb, 2021
This tutorial uses Laravel 8.
Firstly you will need to get a new Laravel project installed.
In your Terminal, navigate to where you want your project to live and run this command to set up a new application:
laravel new breeze-app
Once that is complete you will need to set up your database. Create a new database and then add the database name, username and password to the .env file.
Then you will need to run the migrations to set up the initial tables in your database:
php artisan migrate
You can now install Breeze:
composer require laravel/breeze --dev
After Composer has installed the Laravel Breeze package, you may run the breeze:install Artisan command. This command publishes the authentication views, routes, controllers, and other resources to your application. Laravel Breeze publishes all of its code to your application so that you have full control and visibility over its features and implementation. After Breeze is installed, you should also compile your assets so that your application's CSS file is available:
php artisan breeze:install
npm install
npm run dev
You should now be able to run your project and register and login as a user.