Laravel Route Groups ~ Lesson 3: Laravel 6 Authorization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Laravel route groups
2. Applying auth or authorization middleware on Laravel route groups
3. Refactoring route groups using Laravel RouteServiceProvider
4. Creating custom routing file (Your custom web.php or api.php routes file ~ we call ours auth.php)
5. Implementing middleware on all routes in your custom routing file
6. Laravel routing middleware applied on all routes in our custom routes/auth.php file without needing to reference the middleware on each rout or use the Route::middleware('auth') or Route::group(anonymousCallbackFunction of routes).
7. Set up the routes service provider, then simply add routes to your own custom routes/auth.php file and all the routes will have the given auth middleware applied.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Clean Code Studio ~ Simplify
Clean Code Clean Life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ Ссылка ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#LaravelRouteGroups #LaravelRouteGroupsMiddleware #Laravel6Authorization
![](https://i.ytimg.com/vi/lUXnIEa7eiA/maxresdefault.jpg)