Trusted answers to developer questions

How to install a breeze Laravel authentication package

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

widget

Laravel is used to ship authentication with the installation package. However, authentication is now provided as a part of breeze for Laravel 8.

If you have Laravel 8 up and running, you will need to run a few commands to get your breeze authentication package running smoothly.

  • First, run the composer command. This will install the breeze package into your application, as shown below:
composer require laravel/breeze --dev

  • You can use either react or vue to serve as your UI, which you can select while the breeze package installs.
php artisan breeze:install vue


php artisan breeze:install react
  • The next step is to install the necessary dependencies using npm, as shown below:
npm install //installs the node package for which UI you've chosen
npm run dev

  • Finally, you can set up your database for the authentication package by running the following command:
php artisan migrate

If all the steps are done correctly, you can visit the /register path to register a new user to your application and visit /login to login registered users.

You can find your defined routes in routes/auth.php.

RELATED TAGS

php
laravel

CONTRIBUTOR

Chinweuba Elijah Azubuike
Did you find this helpful?