Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel tinker insert DB record


>>> $user = new AppUser
=> AppUser {#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  
Source by www.codermen.com #
 
PREVIOUS NEXT
Tagged: #laravel #tinker #insert #DB #record
ADD COMMENT
Topic
Name
7+2 =