Added placeholder users; Better exception handling; Enhanced local setup

This commit is contained in:
Constantin Graf
2024-03-08 13:31:49 +01:00
parent 0ed5d14817
commit 77e7a63b83
38 changed files with 882 additions and 89 deletions

View File

@@ -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,
]);
}
}