Laravel 5.7.*: Middleware, Authentication, Authorization Explained
Laravel 5.7.*: Middleware, Authentication, Authorization Explained
$4.99
Minimum price
$14.99
Suggested price
Laravel 5.7.*: Middleware, Authentication, Authorization Explained

This book is 100% complete

Completed on 2018-12-03

About the Book

In Laravel implementing authentication is very simple. In fact, almost everything is configured for you out of the box.

Only two commands can take care of scaffolding your entire authentication system in Laravel 5.7. However, that is not enough for a learner to manage any complicated web application. Here you will learn all the lessons regarding Middleware, Authentication and Authorizations to master Laravel.

You will learn how at its core, Laravel's authentication facilities are made up of "guards" and "providers", and how they work at tandem to make your application smooth. Besides, you will have a clear conception about model relations, Eloquent ORM, resourceful controllers, partial views and usages of Faker objects.

While learning Authentication, you also understand the role of Middleware. Understanding how it provides a convenient mechanism for filtering HTTP requests entering your application is also very important. For example, Laravel includes a middleware that verifies the user of your application is authenticated. If the user is not authenticated, the middleware will redirect the user to the login screen. However, if the user is authenticated, the middleware will allow the request to proceed further into the application.

How this user-friendly and elegant mechanism works, is explained in great detail, keeping in mind that the reader could be at the beginner's stage.

About the Author

Sanjib Sinha
Sanjib Sinha

Sanjib Sinha is a certified “.NET Windows and Web Developer”, specializing in Python, Security Programming and PHP; he won Microsoft's Community Contributor Award in 2011. As a published author, Sanjib Sinha has written “Beginning Ethical Hacking with Kali LInux”, “Beginning Ethical Hacking with Python”, and “Beginning Laravel” for Apress.

Table of Contents

1. Why Laravel


2. How Authentication, Middleware and Authorization work together


3. Laravel Top Ten Commands we need for Authentication


4. Authenticating Our Companies Management Application

4.1 How Company Projects and Tasks Management Application Works


5. How Migrations work in Laravel and Help us to Authenticate

5.1 Where to find the tables


6. Eloquent Relationship and Model Relations to Authenticate an App

6.1 Eloquent Relationship and Model Relations to Authenticate an App


7. Why Resourceful Controller is Important for Authentication


8. Seeding, Factories, and Faker we Need to Test the Application


9. Middleware, Authentication and Authorization in One Place

9.1. How Model-View-Controller works in Authentication

9.2. Home Page, Redirection and Authentication

9.3. Role of a User and Authorization

9.4. Forms and HTML: Insert, Edit sections for Authorized Users


10. Implementing Authorization Using Gates and Policies

10.1 How Authorization Works

10.2 How Policies Work

10.3 Why Policies are Needed


Your Task as a Reader


Last but not Least

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Write and Publish on Leanpub

Authors, publishers and universities use Leanpub to publish amazing in-progress and completed books and courses, just like this one. You can use Leanpub to write, publish and sell your book or course as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub