first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Verifikator;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class TeamUnitKerja extends Model
|
||||
{
|
||||
protected $table = 'verifikator.team_unit_kerjas';
|
||||
|
||||
protected $fillable = ['team_id', 'unit_kerja_id'];
|
||||
|
||||
public function unitKerja(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(UnitKerjaPegawai::class, 'unit_kerja_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user