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.