27 lines
521 B
PHP
27 lines
521 B
PHP
<?php
|
|
|
|
namespace App\Models\Verifikator;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Prodi extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'verifikator.prodis';
|
|
protected $fillable = [
|
|
'akreditasi_id'
|
|
];
|
|
|
|
function unit()
|
|
{
|
|
return $this->belongsTo(UnitKerjaPegawai::class, 'unit_kerja_id', 'id');
|
|
}
|
|
|
|
function akreditasi()
|
|
{
|
|
return $this->belongsTo(Akreditasi::class, 'akreditasi_id', 'id');
|
|
}
|
|
}
|