<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class AttendanceAttempt extends Model { protected $fillable=['user_id','office_id','action','ip_address','user_agent','allowed','reason']; protected function casts():array{return ['allowed'=>'boolean'];} }