first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Verifikator;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
class RemunerasiPerBulan extends Model
|
||||
{
|
||||
use HasFactory, SoftDeletes;
|
||||
|
||||
protected $table = 'verifikator.remunerasi_per_bulans';
|
||||
protected $guarded = [
|
||||
'id',
|
||||
'jabatan_pegawai_detail_id',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
function detail()
|
||||
{
|
||||
return $this->belongsTo(JabatanPegawaiDetail::class);
|
||||
}
|
||||
|
||||
function bulan()
|
||||
{
|
||||
return $this->belongsTo(JabatanPegawaiDetail::class, 'jabatan_pegawai_detail_id')->select('id', 'bulan');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user