<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;

class Region extends Model
{
    use HasFactory, HasTranslations;

    protected $fillable = [
        'name',
        'city_id',
    ];

    public $translatable = [
        'name'
    ];

    public function cities()
    {
        return $this->hasMany(City::class);
    }
}
