<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class InternLearningItem extends Model {protected $guarded=[];protected function casts():array{return ['due_date'=>'date'];}public function intern(){return $this->belongsTo(Intern::class);}}