create user with tinker php laravel example code

create user with tinker php laravel example code

create user with tinker php laravel example

create user with tinker php laravel example in php

1) php artisan tinker
  
2) >>> User::create(["name"=> "laravel", "email"=>"laravel@tinker.com", "password"=>bcrypt("secret")]);
=> App\Models\User {#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,
  }
>>> 
By Manish Salunke In php -

Tags:

php

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99