<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class UsersSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$user = User::create([
'nama'=>'Admin',
'email'=>'[email protected]',
'password'=>bcrypt('password'),
'role'=>'admin'
]);
$user->user_statuses()->create([
'status'=>'active',
'description' => 'akun admin aktif'
]);
$peserta = User::create([
'nama'=>'Peserta',
'email'=>'[email protected]',
'password'=>bcrypt('password'),
'role'=>'peserta'
]);
$operator = User::create([
'nama'=>'Operator',
'email'=>'[email protected]',
'password'=>bcrypt('password'),
'role'=>'operator'
]);
$instruktur = User::create([
'nama'=>'Instruktur',
'email'=>'[email protected]',
'password'=>bcrypt('password'),
'role'=>'instruktur'
]);
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]