<?php

namespace app\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Kecamatan extends Model
{
    protected $table = 'kecamatan';
    protected $fillable = ['id_kecamatan','kabupaten_id','nama_kecamatan'];
    protected $primaryKey = "id_kecamatan";
    public $timestamps = false;

    public function kabupaten(){
        return $this->belongsTo('App\Http\Models\Kabupaten','kabupaten_id');        
    }
}
