<?php

namespace App\Models;

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

class Destination extends Model
{
    use HasFactory;

    protected $fillable = [
        'title',
        'description',
        'start_location',
        'minimum_age',
        'image_url',
        'country_id',
        'user_id'
    ];

    protected function casts(): array
    {
        return [
            'minimum_age' => 'integer'
        ];
    }
}
