Abstract
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 requestresponse 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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Sanjib Sinha
About this chapter
Cite this chapter
Sinha, S. (2017). Middleware, Layer Filter, and Extra Security. In: Beginning Laravel. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2538-7_20
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2538-7_20
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2537-0
Online ISBN: 978-1-4842-2538-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books