<?php

namespace App\Models;

use App\Libs\Database\Eloquent\ContentTypeModel;
use App\Models\GenericBackoffice\Traits\LanguageSupportTrait;
use Grimzy\LaravelMysqlSpatial\Eloquent\SpatialTrait;

class CityZone extends ContentTypeModel
{
    use LanguageSupportTrait;
    use SpatialTrait;

    protected $hidden = ['languages', "websites"];
    protected $with = ['languages', "websites"];

    protected $dates = []; // dates
    protected $spatialFields = ['map_position']; // Locations lat & longs

    protected $casts = [];

    public function city()
    {
        return $this->belongsTo(City::class);
    }
}
