<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class AttendanceRecord extends Model {protected $guarded=[];protected function casts():array{return ['work_date'=>'date','check_in_at'=>'datetime','check_out_at'=>'datetime','is_locked'=>'boolean'];}public function user(){return $this->belongsTo(User::class);}}