In this video Tutorial, you will learn about Laravel 5 Middlewares
Middleware provides a convenient mechanism for filtering HTTP requests entering your application. 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.
Of course, additional middleware can be written to perform a variety of tasks besides authentication. A CORS middleware might be responsible for adding the proper headers to all responses leaving your application. A logging middleware might log all incoming requests to your application.
There are several middleware included in the Laravel framework, including middleware for authentication and CSRF protection. All of this middleware are located in the app/Http/Middleware directory.
If you like the video, then please do like the video and do subscribe to my channel for more videos.
Visit our Fan page on Facebook: https://www.facebook.com/perfectwebsolutions
Visit our Fan Page on Twitter: @pwspkjlm
Visit our Official Website: http://perfectwebsolutions.info/
No comments:
Post a Comment