Skip to content

Laravel Tinker New Bcrypt Password

By Jasper Frumau

If you quickly need to adjust a user’s password or add a new password for a new user you can do that using Laravel Tinker. Just fire up

php artisan tinker

then run the following:

$pw = bcrypt('yourpasswordofchoice');

This will then spit out the password encrypted using the standard Bcrypt encryption. This you can then add to the users table for the user in question.

Comments are closed for this post.