mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 18:52:14 +01:00
Added placeholder users; Better exception handling; Enhanced local setup
This commit is contained in:
@@ -27,10 +27,10 @@ class OrganizationFactory extends Factory
|
||||
];
|
||||
}
|
||||
|
||||
public function withOwner(): self
|
||||
public function withOwner(?User $owner = null): self
|
||||
{
|
||||
return $this->state(fn (array $attributes) => [
|
||||
'user_id' => User::factory(),
|
||||
'user_id' => $owner === null ? User::factory() : $owner,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user