Skip to main content

How Security and Authentication Work Together

  • Chapter
  • First Online:
Beginning Laravel
  • 1937 Accesses

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:

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

Access this chapter

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

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

Publish with us

Policies and ethics