Hashing

    The Laravel provides secure Bcrypt hashing for storing user passwords. If you are using the built-in LoginController and RegisterController classes that are included with your Laravel application, they will automatically use Bcrypt for registration and authentication.

    Basic Usage

    The make method also allows you to manage the work factor of the bcrypt hashing algorithm using the option; however, the default is acceptable for most applications:

    Verifying A Password Against A Hash

    Checking If A Password Needs To Be Rehashed

    The function allows you to determine if the work factor used by the hasher has changed since the password was hashed: