<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Site extends Model
{
    use HasFactory;
    protected $fillable = [
        'name',
        'location',
        'lat',
        'longi',
        'description_fr',
        'description_en',
        'standard_price',
        'premium_price',
        'visit_start_time',
        'visit_end_time',
    ];

    // Dans Site.php (manquant)
public function images()
{
    return $this->hasMany(SiteImage::class);
}
}
