Introduction
Security is one of the most important things we need to consider when building web applications, especially if we're dealing with sensitive user information. Laravel provides many ways for us to keep our application secure.
In this chapter, we'll look at various ways to mask sensitive data, how to secure our forms from cross-site attacks, and how to secure an API. We'll also see how we can use sessions for building a shopping cart and using Redis to store session data.