first commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Verifikator;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class SyaratRubrikDetail extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'verifikator.syarat_rubrik_details';
|
||||
|
||||
protected $fillable = [
|
||||
'rubrik_id',
|
||||
'syarat_rubrik_id',
|
||||
'keterangan',
|
||||
];
|
||||
|
||||
public function rubrik()
|
||||
{
|
||||
return $this->belongsTo(Rubrik::class, 'rubrik_id');
|
||||
}
|
||||
|
||||
public function syaratRubrik()
|
||||
{
|
||||
return $this->belongsTo(SyaratRubrik::class, 'syarat_rubrik_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user