- 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>
31 lines
633 B
PHP
31 lines
633 B
PHP
<?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,
|
|
];
|
|
}
|
|
}
|