Category: Laravel, PHP

Yesterday, my client asked me how to change his user password to login into the Admin Dashboard. Since that is not my current scope of work and not my responsibility to build Change Password Feature (although it was a simple task), I decide to help my clients to change his user password via Terminal with built in Laravel powerful REPL called Tinker!

Here’s what I do to change my client user password via Terminal: You will now entering the Laravel console.

In my case, here’s the result: Next, type the following command to change user password with the new desire password (eg: new_password): To save the newly created password, type this following command: Voila!

Probably this is a very simple tip, but it is useful when you want to change user password via terminal with the powerful Laravel Tinker command.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners