<?php

namespace App\Models;

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

class Region extends Model
{
    use HasFactory;

    protected $table       = "regions";
    protected $primaryKey  = 'id';
    protected $guarded     = ['id'];
    
    public function cities()
    {
        return $this->hasMany('App\Models\City', 'region_id', 'id'); 
    }

}