Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php artisan tinker encryption cmd

>> php artisan tinker

$admin = new AppAdmin;
$admin->name= "admin";
$admin->email="admin@admin.com";
$admin->password= Hash::make('password');
$admin->save();

Hash::make('new_password');
=> "$2y$10$mxpQR9NLHLqTnC0D8I0dmeQcXgwdKIuD9roPYjl.YMvsXCVVoRuXG"
>>> bcrypt('new_password');
=> "$2y$10$mxpQR9NLHLqTnC0D8I0dmeQcXgwGGm1112rDxwVrUP9boDaMuKE8i"
 
PREVIOUS NEXT
Tagged: #php #artisan #tinker #encryption #cmd
ADD COMMENT
Topic
Name
2+7 =