Skip to content

Instantly share code, notes, and snippets.

@Luukyb
Created April 24, 2017 13:23
Show Gist options
  • Save Luukyb/26e79d1fbc34d5d7381070833317f6b2 to your computer and use it in GitHub Desktop.
Save Luukyb/26e79d1fbc34d5d7381070833317f6b2 to your computer and use it in GitHub Desktop.
Set Laravel's user password, for development. Place the snippet in your app/routes.php file, on the homepage's route.
$user = User::find(27);
$user->password = Hash::make('test');
$user->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment