Abstract
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 Bcrypt hashing. You can make your password stronger with this method:
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Sanjib Sinha
About this chapter
Cite this chapter
Sinha, S. (2017). How Security and Authentication Work Together. In: Beginning Laravel. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2538-7_17
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2538-7_17
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