
Custom Auth Implementation In Laravel : A Practical Guide
Introduction
In this course, we will learn to implement Custom Authentication in Laravel using the Laravel Breeze package.
We will use Guards to implement Custom Auth and define separate areas for different users.
While building the Custom Authentication functionality, we will work on the following features:
- Learn about Guards and assign Guards to a Database Model.
- Implement Custom Login/Registration for different Models by following patterns like Code Re-usability and DRY(Don't Repeat Yourself)
- Implement Email Verification functionality for the Custom Guards.
- Implement Password Reset functionality for Custom Guards and learn how to use Password Brokers provided by Laravel
- Implement the Confirm Password flow for the Custom Guard and use it accordingly.
- Implement a dedicated Profile Section for the Custom Guard and define logic accordingly.
- Define Separate Sections/Layouts based on the custom guards registered in the application.
-
We'll also Learn about:
- Routes/Controllers Organization.
- Controller sub-folders/namespaces
- Views organization using sub-folders for each Area.
- Separate Navigation menus for each Area/Section
- Route grouping
- Route name prefixes
- URL prefixes
-
Also, we'll define individual Middlewares, to protect each area based on its specific Guard
Along with the above concepts, we will also:
- Learn how to Read and Reuse the existing code to avoid Code Duplication.
- Learn about the essential VS Code extensions every PHP/Laravel developer must use.
- Learn a few tips/tricks along the way
- And many more