Created
March 8, 2018 03:25
-
-
Save andri-sudarmawijaya/6b5c2892fe7c9199f2a22fec7da74654 to your computer and use it in GitHub Desktop.
php artisan tinker - create user
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
~~~ | |
>>> $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