Inhaltsverwaltung: Bilder, Webseiten-Texte, Ausstattung, FAQ, Hinweis-Banner

- Bilder mit automatischen WebP-Webgrößen (640/1280/2048 px), Sortierung per Drag & Drop, Mehrfach-Upload, Import-Befehl photos:import
- Webseiten-Texte als feste, bearbeitbare Bausteine (config/content.php), Rich-Text bereinigt ausgegeben
- Ausstattung und FAQ aus der bisherigen Webseite übernommen
- Rolle Inhalte hat Zugriff auf alle Webseiten-Bereiche

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Lars StommerandClaude Opus 5.5 committed 2026-10-22 10:19:51 +02:00
1 parent 27ea12901e
commit bb7eb62782
53 files changed
+1963 -1

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use App\Enums\AmenityArea;
use App\Models\Amenity;
use App\Models\Property;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Amenity>
*/
class AmenityFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'property_id' => Property::factory(),
'area' => AmenityArea::General,
'name' => fake()->words(2, true),
'is_highlight' => false,
'sort_order' => 0,
];
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Database\Factories;
use App\Models\Faq;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Faq>
*/
class FaqFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'question' => fake()->sentence().'?',
'answer' => '<p>'.fake()->paragraph().'</p>',
'is_published' => true,
'sort_order' => 0,
];
}
}
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Database\Factories;
use App\Enums\NoticeTone;
use App\Models\Notice;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Notice>
*/
class NoticeFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'text' => fake()->sentence(),
'tone' => NoticeTone::Info,
'is_active' => true,
];
}
}
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Database\Factories;
use App\Enums\PhotoCategory;
use App\Models\Photo;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Photo>
*/
class PhotoFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'category' => PhotoCategory::Apartment,
'alt_text' => fake()->sentence(3),
'is_published' => true,
'sort_order' => 0,
];
}
}