📅  最后修改于: 2022-03-11 14:56:04.108000             🧑  作者: Mango
>>> $user = new App\User
=> App\User {#3024}
>>> $user->name = 'CoderMen'
=> "CoderMen"
>>> $user->email = 'codermen@mail.com'
=> "codermen@mail.com"
>>> $user->password = bcrypt('password')
=> "$2y$10$GJCQzj71L56TDAG2wa3VNeSONgMWp8zAk2TQ1kfHVxPgARXg75fxO"
>>> $user->save()
=> true
>>> By Munthir Zikri