Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create user with tinker php laravel

1) php artisan tinker
  
2) >>> User::create(["name"=> "laravel", "email"=>"laravel@tinker.com", "password"=>bcrypt("secret")]);
=> AppModelsUser {#4290
   name: "laravel",
   email: "laravel@tinker.com",
   updated_at: "2021-04-22 08:23:28",
   created_at: "2021-04-22 08:23:28",
   id: 1,
  }
>>> 
Source by larainfo.com #
 
PREVIOUS NEXT
Tagged: #create #user #tinker #php #laravel
ADD COMMENT
Topic
Name
1+1 =