Added timezone for user; Moved dashboard to controller

This commit is contained in:
Constantin Graf
2024-03-19 17:19:54 +01:00
parent 2133eb0c16
commit 6ecfef6bf1
16 changed files with 494 additions and 308 deletions

View File

@@ -32,9 +32,19 @@ class UserFactory extends Factory
'profile_photo_path' => null,
'current_team_id' => null,
'is_placeholder' => false,
'timezone' => 'Europe/Vienna',
];
}
public function randomTimeZone(): static
{
return $this->state(function (array $attributes) {
return [
'timezone' => $this->faker->timezone(),
];
});
}
public function placeholder(bool $placeholder = true): static
{
return $this->state(function (array $attributes) use ($placeholder): array {