Laravel Tinker New Bcrypt Password

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.

Jasper Frumau

Jasper has been working with web frameworks and applications such as Laravel, Magento and his favorite CMS WordPress including Roots Trellis and Sage for more than a decade. He helps customers with web design and online marketing. Services provided are web design, ecommerce, SEO, content marketing. When Jasper is not coding, marketing a website, reading about the web or dreaming the internet of things he plays with his son, travels or run a few blocks.