Created
September 29, 2018 15:13
-
-
Save WebDevEtc/b8177256355fc8b86d65e01f9ba0ac2d to your computer and use it in GitHub Desktop.
Change Laravel User Password in php artisan tinker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// run this in php artisan tinker (enter it line by line) to chage the pw | |
// select whatever user you want to edit. | |
$user = \App\User::where('id', 1)->firstOrFail(); | |
$user->password = Hash::make('Your New Password'); | |
$user->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment