Chapter 7. Authentication and Security

In this chapter, we will improve the application we built in Chapter 3, Your First Application, by adding a simple authentication mechanism and addressing any security issues with the existing code base. In doing so, you will learn about:

  • Configuring and using the authentication service
  • Middleware and how to apply it to specific routes
  • Data validation and form requests
  • The most common security vulnerabilities in web applications
  • How Laravel can help you write more secure code

Authenticating users

Allowing users to register and sign in is an extremely common feature in web applications. Yet, PHP does not dictate how it should be done, nor does it give you any helpers to implement it. This has led to the creation ...

Get Laravel 5 Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.