<?php 

namespace App\Models;

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

class GalleryImage extends Model
{
    use HasFactory;

    protected $fillable = [
        'property_id',
        'image_path',
    ];

    protected $hidden = ['created_at', 'updated_at', 'property_id', 'id'];

    public function property()
    {
        return $this->belongsTo(Property::class);
    }
}
