Hashing
The Laravel provides secure Bcrypt hashing for storing user passwords. If you are using the AuthController
controller that is included with your Laravel application, it will automatically use Bcrypt for registration and authentication.
Basic Usage
Alternatively, you may also use the global helper function:
Verifying A Password Against A Hash
Checking If A Password Needs To Be Rehashed
The needsRehash
function allows you to determine if the work factor used by the hasher has changed since the password was hashed: