<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Daerah extends Model
{
    protected $table = 'daerah';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    // protected $fillable = [

    // ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    // protected $hidden = [];

    public function negeri(): BelongsTo
    {
        return $this->belongsTo(Negeri::class, 'kodnegeri', 'kodnegeri');
    }
}
