<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Astrotomic\Translatable\Contracts\Translatable as TranslatableContract;
use Astrotomic\Translatable\Translatable;
use Illuminate\Database\Eloquent\SoftDeletes;


class Area extends Model implements TranslatableContract
{
    use HasFactory, Translatable , SoftDeletes;

    public $translatedAttributes = ['name'];
    protected $fillable = ['city_id'];

    protected $dates = [ 'deleted_at' ];

    public function city(): \Illuminate\Database\Eloquent\Relations\BelongsTo
    {
        return $this->belongsTo(City::class);
    }

}
