<?php

namespace App\Models;

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

class Province extends Model
{
    use HasFactory;

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