first commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user