Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andri-sudarmawijaya/6b5c2892fe7c9199f2a22fec7da74654 to your computer and use it in GitHub Desktop.
Save andri-sudarmawijaya/6b5c2892fe7c9199f2a22fec7da74654 to your computer and use it in GitHub Desktop.
php artisan tinker - create user
~~~
>>> $user = New App\User;
=> App\User {#812}
>>> $user->name = 'admin';
=> "admin"
>>> $user->email='admin@example.com';
=> "admin@dev.bantenprov.go.id"
>>> $user->password = Hash::make('admin');
=> "$1"
>>> $user->save();
=> true
>>>
~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment