feat: add shift management functionality
This commit is contained in:
@@ -35,9 +35,10 @@ class FastRequestSeeder extends Seeder
|
||||
|
||||
return collect($doctors)->map(function ($doctor) {
|
||||
return User::firstOrCreate(
|
||||
['username' => explode('@', $doctor['email'])[0]],
|
||||
User::factory()->raw([
|
||||
['email' => $doctor['email']],
|
||||
array_merge(User::factory()->raw(), [
|
||||
'email' => $doctor['email'],
|
||||
'username' => explode('@', $doctor['email'])[0],
|
||||
'level' => UserEnum::Doctor->value,
|
||||
'fullname' => $doctor['fullname'],
|
||||
'specialty' => $doctor['specialty'],
|
||||
|
||||
Reference in New Issue
Block a user