hash function in php and hash function in laravel difference code example Example: bcript laravel $password = bcrypt('secret');