<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class WorkerDocument extends Model {protected $guarded=[];protected function casts():array{return ['issued_on'=>'date','expires_on'=>'date','is_private'=>'boolean'];}public function user(){return $this->belongsTo(User::class);}public function uploader(){return $this->belongsTo(User::class,'uploaded_by');}}