<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class SalaryRevision extends Model { protected $fillable=['employee_id','effective_from','base_salary','allowances','deductions','notes','approved_by']; protected function casts():array{return ['effective_from'=>'date','base_salary'=>'decimal:2','allowances'=>'array','deductions'=>'array'];} }