<?php

namespace app\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Kabupaten extends Model
{
    protected $table = 'kabupaten';
    protected $fillable = ['id_kabupaten','provinsi_id','nama_kabupaten'];
    protected $primaryKey = "id_kabupaten";
    public $timestamps = false;

    public function provinsi(){
        return $this->belongsTo('App\Http\Models\Provinsi','provinsi_id');        
    }
}
