- PHP

How to Hash a Password in Laravel?

In order to keep our application secure, we should be always saving any passwords as hashes.

In Laravel, we can do this quite easily.

All we have to do is to use Hash::make(‘password’) or bcrypt(‘password’).

Example:

<?php

$password = bcrypt('password1234');

?>