Skip to content

Commit

Permalink
Removed area from seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko259 committed Aug 2, 2024
1 parent dce2b92 commit 35b55c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/seeders/UserSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35b55c1

Please sign in to comment.