© Sanjib Sinha 2017

Sanjib Sinha, Beginning Laravel, 10.1007/978-1-4842-2538-7_17

17. How Security and Authentication Work Together

Sanjib Sinha

(1)Howrah, West Bengal, India

Laravel implements authentication in such a simple way that you have everything just out of the box. To do that, Laravel returns an array in ‘app/config/auth.php’ where these things are defined and it also well documented. In this file it is clear that the driver will be Eloquent, the model will be User, and the table is ‘users’. There is another table: ‘password_reminder ’. We will discuss it later. So by default it has been defined; now all you have to do is use the static methods Laravel ships with. To make your password stronger, Laravel has ‘Hash’ class that provides secure ...

Get Beginning Laravel: A beginner's guide to application development with Laravel 5.3 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.