mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 03: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 {
|
||||
|
||||
@@ -23,6 +23,7 @@ return new class extends Migration
|
||||
$table->boolean('is_placeholder')->default(false);
|
||||
$table->foreignUuid('current_team_id')->nullable();
|
||||
$table->string('profile_photo_path', 2048)->nullable();
|
||||
$table->string('timezone')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->uniqueIndex('email')
|
||||
|
||||
Reference in New Issue
Block a user