- Gäste: Markierungen, Aufenthalte & Umsatz, Stammgast-/Einwilligungsfilter, CSV-Export, Anonymisierung (manuell + automatisch nach Aufbewahrungsfrist) - Werbe-Einwilligung per Double-Opt-in aus dem Anfrageformular, signierte Bestätigungs-/Abmeldelinks - Bewertungen: automatische Einladung nach Abreise, Bewertungsformular mit Kategorien und internem Feedback, Freigabe und öffentliche Antwort im Admin - Konzept: Rollen, Inhalte, Customer Voice, Architektur Portal-Sync/Buchungshoheit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
826 B
PHP
34 lines
826 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Enums\ReviewStatus;
|
|
use App\Models\Property;
|
|
use App\Models\Review;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Review>
|
|
*/
|
|
class ReviewFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'property_id' => Property::factory(),
|
|
'status' => ReviewStatus::Pending,
|
|
'source' => 'website',
|
|
'rating' => 5,
|
|
'body' => fake()->paragraph(),
|
|
'display_name' => fake()->firstName().' '.fake()->randomLetter().'.',
|
|
'publish_consent' => true,
|
|
'stayed_on' => fake()->dateTimeBetween('-1 year')->format('Y-m-d'),
|
|
];
|
|
}
|
|
}
|