Middleware, Layer Filter, and Extra Security

  • Sanjib Sinha


HTTP Middleware is one of the best facilities Laravel 5 ships with. It not only adds extra security to your application but also gives you enough freedom to create your own security mechanism alongside the default Laravel Authentication mechanism. As you know already, when a user requests for a page, the browser sends the request and the server responds. Sometimes, this request­response mechanism is simple and sometimes it is fairly complicated. But at the end of the day whenever a user requests for a page a HTTP request enters your application. Most of the time it is innocuous, but as the proverb goes you cannot and should not rely on user’s input or request so it needs to filtered. It has to be filtered when your application needs an extra bit of authentication or security measures to be taken. Middleware does this out of the box.


User Request Incoming Request Public Function Layer Filter Good Facility 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Sanjib Sinha 2017

Authors and Affiliations

  • Sanjib Sinha
    • 1
  1. 1.HowrahIndia

Personalised recommendations