<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Jenis extends Model { protected $table = 'jenis'; protected $primaryKey = 'jenis_id'; public $incrementing = false; protected $fillable = [ 'jenis_id', 'nama', 'keterangan', 'status_hapus' ]; public function rPenilaianMonev() { return $this->hasMany(\App\Models\JenisPenilaianMonev::class, 'jenis_id', 'jenis_id'); } }