mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Added timezone for user; Moved dashboard to controller
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user