diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.php index c33c630..0d58792 100644 --- a/database/seeders/UserSeeder.php +++ b/database/seeders/UserSeeder.php @@ -72,7 +72,7 @@ public function run(): void // Assign groups randomly, or specific group for user 10 if ($i == 10) { - $user->groups()->attach(Group::find($group), ['area_id' => 1]); + $user->groups()->attach(Group::find($group)); } else if ($i !== 11) { $randomGroup = $groups->random(rand(0, $groups->count()))->pluck('id')->toArray(); $user->groups()->attach($randomGroup);