ludo1960
4 months ago
25
14
Laravel

How to create a password in code?

Posted 4 months ago by ludo1960

Hi guys,

In laravel 5.8 how to create a password in code. I've tried:

$password = bcrypt('mypassword');

and I've also tried:

use Illuminate\Support\Facades\Hash;

...
$password = Hash::make('mypassword');

But neither lets me login, what am I doing wrong?

Please sign in or create an account to participate in this conversation.