Laravel 8 Authentication with Breeze Tutorial

Reading Time: 4 minutes
15,732 Views

For every web application – login & registration must be a needed part. Inside this article we will see Laravel 8 Authentication with Breeze. We will do Laravel authentication with breeze.

Laravel founder Taylor otwell released laravel breeze with simple authentication scaffolding. Inside this we will see composer package for breeze. Laravel Breeze is powerful combination by Blade templates and Tailwind. It publishes controllers for authentication system, views and routes to laravel application.

Let’s get started.


Laravel Installation

We will create laravel project using composer. So, please make sure your system should have composer installed. If not, may be this article will help you to Install composer in system.

Here is the command to create a laravel project-

composer create-project --prefer-dist laravel/laravel blog

To start the development server of Laravel –

php artisan serve

URL: http://127.0.0.1:8000

Assuming laravel already installed inside your system.

Database also configured with application.


Install Breeze

We need to Install laravel breeze package for the authentication. Open Laravel project to terminal and type the given command.

$ composer require laravel/breeze --dev

While Installation, this will be the screen we get

It will install breeze to application. Now, to install laravel breeze for simple auth scaffolding.

$ php artisan breeze:install

After this command need to run the command

$ npm install && npm run dev

It will generate CSS and JS compiled files for authentication system. After running this, all controllers, routes, views we can find into source code of laravel application.


Run Migration

Next, we need to run migration command to generate tables in database. Open terminal and run this artisan command.

$ php artisan migrate

Breeze Authentication Controllers

Authentication controller we can find into the path /app/Http/Controllers/Auth


Breeze Authentication Routes

Application routes configuration we can find into the directory /routes. File name is auth.php.

This auth.php file is included in web.php i.e main configuration file for routes. Have a look.

web.php -> require DIR.’/auth.php’;


Breeze Authentication Views

Blade template files after generating breeze scaffolding we can find at path /resources/views/auth


Application Testing

Run this command into project terminal to start development server,

php artisan serve

URL – 127.0.0.1:8000

When we click on register link, it will open

When we click on Login page, it will open the login page

After filling valid login details, we should see this user dashboard

We hope this article helped you to learn about Laravel 8 Authentication with Breeze in a very detailed way.

Online Web Tutor invites you to try Skillshike! Learn CakePHP, Laravel, CodeIgniter, Node Js, MySQL, Authentication, RESTful Web Services, etc into a depth level. Master the Coding Skills to Become an Expert in PHP Web Development. So, Search your favourite course and enroll now.

If you liked this article, then please subscribe to our YouTube Channel for PHP & it’s framework, WordPress, Node Js video tutorials. You can also find us on Twitter and Facebook.

Sanjay KumarHello friends, I am Sanjay Kumar a Web Developer by profession. Additionally I'm also a Blogger, Youtuber by Passion. I founded Online Web Tutor and Skillshike platforms. By using these platforms I am sharing the valuable knowledge of Programming, Tips and Tricks, Programming Standards and more what I have with you all. Read more

2 thoughts on “Laravel 8 Authentication with Breeze Tutorial”

  1. Ur Laravel8 videos is very useful .Thank you so much sir..
    Agr app laravel8 ka project bnawa do to sare concept kha use hote he smj me jaye..

Comments are closed.