$user = new AppUser();
$user->password = Hash::make('the-password-of-choice');
$user->email = 'the-email@example.com';
$user->name = 'My Name';
$user->save();
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,
}
>>>
DB::table('users')->insert(['name'=>'MyUsername','email'=>'thisis@myemail.com','password'=>Hash::make('123456')])
$user = new AppUser();
$user->password = Hash::make('123456');
$user->email = 'email@domain.com';
$user->name = 'username';
$user->save();