Skip to content

Instantly share code, notes, and snippets.

@WebDevEtc
Created September 29, 2018 15:13
Show Gist options
  • Save WebDevEtc/b8177256355fc8b86d65e01f9ba0ac2d to your computer and use it in GitHub Desktop.
Save WebDevEtc/b8177256355fc8b86d65e01f9ba0ac2d to your computer and use it in GitHub Desktop.
Change Laravel User Password in php artisan tinker
<?
// 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