Storing hashed passwords in Laravel

Laravel comes with hash facade that provides secure bcrypt for storing hashed passwords.

To convert un-hased password to hashed, used make method.

 $hased_password = Hash::make($plain_password) 

Include use Hash; at top of your controller file.

Another way to bcrypt passwords by  bcrypt helper function.

$hased_password = bcrypt($plain_password);

Author: Mujahid Ali

Mujahid Ali is the experience Laravel Developer and Server Administrator at Techstriders. He's managing different projects and doing server related tasks simultaneously.