<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class PayrollBatch extends Model {protected $guarded=[];protected function casts():array{return ['calculated_at'=>'datetime','approved_at'=>'datetime','paid_at'=>'datetime','locked_at'=>'datetime'];}public function items(){return $this->hasMany(PayrollItem::class);}public function approvalSteps(){return $this->morphMany(ApprovalStep::class,'approvable');}}