<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class IzinBermalam extends Model
{
    //
    protected $table = "askm_izin_bermalam";
    protected $primaryKey = "izin_bermalam_id";
    protected $fillable = [
        'rencana_berangkat', 'rencana_kembali', 'desc', 'tujuan', 'dim_id'
    ];

    protected $hidden = [
        'dim_id', 'keasramaan_id'
    ];

    public function dimx_dim()
    {
        return $this->belongTo('App\DimxDim');
    }
}
