<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class IdentitasKlien extends Model
{
    use SoftDeletes;

    public $table = 'identitas_kliens';

    protected $dates = [
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    protected $fillable = [
        'nama',
        'agama_id',
        'created_at',
        'updated_at',
        'deleted_at',
        'no_register',
    ];

    public function agama()
    {
        return $this->belongsTo(Referensi::class, 'agama_id');
    }
}
