Skip to content

Instantly share code, notes, and snippets.

@SalvadorP
Last active November 19, 2020 17:11
Show Gist options
  • Save SalvadorP/70b9ef73e048d0574482 to your computer and use it in GitHub Desktop.
Save SalvadorP/70b9ef73e048d0574482 to your computer and use it in GitHub Desktop.
Laravel 5.1 how to create a user using artisan tinker and the standard user model
php artisan tinker
$user = new App\User;
$user->name="Admin";
$user->email="admin@localhost.com";
$user->password=bcrypt('1234');
$user->save();
@DiamondArt
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment