Mastering Backend Ebook (5) - Compressed
Mastering Backend Ebook (5) - Compressed
Breeze
Tutorial: The
Definitive
Guide (2023)
by Solomon Eseme
Laravel Breeze Tutorial: The Definitive Guide (2022)
Table of Contents
Intro & What is Laravel Breeze....... ................................................3
Conclusion.........................................................................................11
02
Laravel Breeze Tutorial: The Definitive Guide (2022)
Intro
Laravel 8 brought in many improvements to Laravel and many
more packages such as Laravel Breeze to learn and master.
03
Laravel Breeze Tutorial: The Definitive Guide (2022)
Laravel JetStream
Laravel JetStream is a more robust application scaffolding with
more features and additional frontend technology stacks.
04
Laravel Breeze Tutorial: The Definitive Guide (2022)
Laravel Sanctum
Laravel Sanctum is an authentication scaffolding for single-
page applications (SPAs) and APIs.
You can read through the Laravel Tutorial: The ultimate guide.
05
Laravel Breeze Tutorial: The Definitive Guide (2022)
When the submit button is clicked, the request is sent from the
new routes/auth.php file /login route down to the store method
of the new AuthenticatedSessionController.php file in the ../
Controllers/Auth folder.
If you look at the store method, a lot has changed, but the main
login and validation logic is found under the $request-
>authenticate() method, which is located under app/Http/
Requests/Auth/LoginRequest.php
06
Laravel Breeze Tutorial: The Definitive Guide (2022)
You can study the codebase very well, but it just validates the
user and attempts to authenticate a user.
When the submit button is clicked, the request is sent from the
new routes/auth.php file /register route down to the store
method of the new RegisteredUserController.php file in the ../
Controllers/Auth folder.
The store method validate the user inputs and create a new
user based on the information provided.
07
Laravel Breeze Tutorial: The Definitive Guide (2022)
The store method validate the user inputs and create a new
user based on the information provided.
You can customize the code to accommodate your custom input fields.
The password reset logic is the same as before, but the few
difference is that the password reset email is sent from ../
Controllers/Auth/PasswordResetLinkController.php under the store
method.
08
Laravel Breeze Tutorial: The Definitive Guide (2022)
Next, when the user clicks the link from their email, Laravel
shows a form to fill in the new password, on submitting, the
request is sent to store method under
NewPasswordController.php where it is handled.
09
Laravel Breeze Tutorial: The Definitive Guide (2022)
With this new feature, you can allow users to confirm their
password before performing that dangerous actions like
deleting their account, withdrawal from a wallet, etc. Let’s
explore the logic flow:
Conclusion
So far, we have explored Laravel Breeze and explained the
different authentication flows and where to find the different
logics.
10
Laravel Breeze Tutorial: The Definitive Guide (2022)
What’s Next
One last thing: Let’s transform the way new and old backend
engineers learn Backend Engineering together. Remember to
tweet me (@Kaperskyguru) and MasteringBackend
(@Master_backend) -- we’d love to hear from you and see what
you’ve learnt from this guide. Plus, we’re always looking for
best-in-class work to showcase in MasteringBackend training
materials.
Always be learning,
11