Laravel Middleware 🔐(Laravel 6 authorization)

Опубликовано: 26 Январь 2020
на канале: Zak H.
5,965
71

Lesson 1: Laravel Authorization ~ Laravel Middleware and Laravel Auth Setup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Part 1. Laravel 6 auth setup
~~~~~~~~~~~~~~~~~~
~ Once you have the Laravel Installer set up, scaffolding the laravel auth preset is as easy as
running laravel new {blogname} --auth.
~ We implement laravel 6 auth setup using the Laravel Installer
~ We do not cover setting up the Laravel Installer
See Clean Code Studio Laravel Installer & Homestead lesson for Laravel Installer
   • Laravel Homestead (2020)  
~ With the Laravel Installer, we run laravel new --auth, setting up our laravel project with the auth
preset.

Part 2. Laravel Middleware
~~~~~~~~~~~~~~~~~~~
~ Laravel php artisan make:middleware command
~ Referencing the middleware in our App/Http/Kernel.php file
~ BeforeMiddleware
Run validation checks or manipulate the http request
~ AfterMiddleware
Run validation checks or manipulate the http response
~ Laravel Http Kernel overview and configuration
~ Laravel Middleware on Route
~ Laravel Middleware on Controller
~ Laravel Middleware on Route Group
~ Laravel middleware global
~ Laravel Middleware priority
~ Add headers to response in AfterMiddleware
~ Validate the incoming request in BeforeMiddleware

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clean Code Studio ~ Simplify!
Clean Code Clean Life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
https://cleancode.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#LaravelMiddleware #Laravel6Auth #Laravel6Authorization