Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> $user = new App\User
- => <App\User #000000001f7c6cca000000001bf50b62> {}
- >>> $user->name = "Mike"
- => "Mike"
- >>> $user->email = "knoth77@gmail.com"
- => "knoth77@gmail.com"
- >>> $user->password = bcrypt("password")
- => "$2y$10$psKHduzs6Vgs7kcGZiCK6.E1B7MLAtZvTF9CC.H6cv9sMnib7s/1W"
- >>> $user->admin = 1
- => 1
- >>> $user->activated = 1
- => 1
- >>> $user->school_id = 1
- => 1
- >>> $user->save()
- => true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement