19 lines
418 B
PHP
19 lines
418 B
PHP
<?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');
|
|
}
|
|
}
|