Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

create a user using tinker

Psy Shell v0.10.6 (PHP 7.4.16 — cli) by Justin Hileman
>>> User::create(["name"=> "larainfo","email"=>"larainfo@gmail.com","password"=>bcrypt("123456")]);
=> AppModelsUser {#4290
   name: "larainfo",
   email: "larainfo@gmail.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
ADD COMMENT
Topic
Name
7+5 =