tenant admin startseite schicker gestaltet und super-admin und tenant admin (filament) aufgesplittet.
Es gibt nun task collections und vordefinierte tasks für alle. Onboarding verfeinert und webseite-carousel gefixt (logging später entfernen!)
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\Task;
|
||||
use App\Models\TaskCollection;
|
||||
use App\Models\Tenant;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class TaskFactory extends Factory
|
||||
{
|
||||
@@ -13,10 +14,24 @@ class TaskFactory extends Factory
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
$title = ucfirst($this->faker->unique()->words(4, true));
|
||||
$description = $this->faker->paragraph(2);
|
||||
|
||||
return [
|
||||
'tenant_id' => Tenant::factory(),
|
||||
'title' => $this->faker->sentence(4),
|
||||
'description' => $this->faker->paragraph(),
|
||||
'slug' => Str::slug($title . '-' . $this->faker->unique()->numberBetween(1, 9999)),
|
||||
'title' => [
|
||||
'de' => $title,
|
||||
'en' => $title,
|
||||
],
|
||||
'description' => [
|
||||
'de' => $description,
|
||||
'en' => $description,
|
||||
],
|
||||
'example_text' => [
|
||||
'de' => $this->faker->sentence(),
|
||||
'en' => $this->faker->sentence(),
|
||||
],
|
||||
'due_date' => $this->faker->dateTimeBetween('now', '+1 month'),
|
||||
'is_completed' => $this->faker->boolean(20), // 20% chance completed
|
||||
'collection_id' => null,
|
||||
@@ -53,4 +68,4 @@ class TaskFactory extends Factory
|
||||
$task->assignedEvents()->attach($event);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user