Open suprinman opened 4 years ago
Use laravel tinker to create admin account $ php artisan tinker use App\Model\admin\admin;
$admin = new admin(); => App\Model\admin\admin {#3907} $admin->name = "demouser" => "demouser" $admin->email = "demouser@gmail.com" => "demouser@gmail.com" $admin->password = bcrypt('123') => "$2y$10$hJRr/p2q/EFbjtWIh8jcxeXTQR65WaYSiYdb1oZcjK4CafLpdCH1u" $admin->phone = 01111111 => 154554 $admin->status = 1 => 1 $admin->save();
How can we add admin users?