<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class RemoteWorkRequest extends Model {protected $guarded=[];protected function casts():array{return ['work_date'=>'date','approved_at'=>'datetime'];}public function user(){return $this->belongsTo(User::class);}public function approvalSteps(){return $this->morphMany(ApprovalStep::class,'approvable');}}