Explain Laravel’s Middleware?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  Sharad Jaiswal
    Answered by Farheen

    Middleware is a bridge between a response and a request. It can be defined as a type of filtering mechanism. The middleware in Laravel is used to verify and make sure that the user of the application is authenticated. The middleware in Laravel makes sure that if the user is authenticated, it is redirected to the home page and if not, it is redirected to the login page.

Related Questions

Please Login or Register to leave a response.

Related Questions

Laravel interview questions

What is Laravel?

Laravel is a free open source "PHP framework" based on the MVC design pattern. It is created by Taylor Otwell...