Skip to main content

Middleware, Layer Filter, and Extra Security

  • Chapter
  • First Online:
  • 1916 Accesses

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 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.

This is a preview of subscription content, log in via an institution.

Buying options

eBook
USD   24.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics