<?php

namespace App\Models;

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

class Provinsi extends Model
{
    use HasFactory;
    protected $table ='provinsi'; 
    protected $fillable = ['nama','id_prov'];

    public function kabupatens()
    {
        return $this->hasMany(Kabupaten::class);
    }
}
