Laravel Tinker Insérer un enregistrement DB


>>> $user = new App\User
=> App\User {#3024}
>>> $user->name = 'CoderMen'
=> "CoderMen"
>>> $user->email = '[email protected]'
=> "[email protected]"
>>> $user->password = bcrypt('password')
=> "$2y$10$GJCQzj71L56TDAG2wa3VNeSONgMWp8zAk2TQ1kfHVxPgARXg75fxO"
>>> $user->save()
=> true
>>>  By Munthir Zikri  
Bewildered Boar