27 lines
546 B
PHP
27 lines
546 B
PHP
<?php
|
|
|
|
namespace App\Models\Verifikator;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class NilaiCapaianKinerja extends Model
|
|
{
|
|
use HasFactory, SoftDeletes;
|
|
|
|
protected $table = 'verifikator.nilai_capaian_kinerjas';
|
|
protected $fillable = [
|
|
'jenis_pegawai',
|
|
'kriteria',
|
|
'poin',
|
|
'grade',
|
|
'active',
|
|
];
|
|
|
|
function scopeActive($query)
|
|
{
|
|
return $query->where('active', true);
|
|
}
|
|
}
|