*/ use HasFactory; /** * @return BelongsTo */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * @return BelongsTo */ public function marker(): BelongsTo { return $this->belongsTo(Marker::class); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'start_date' => 'date:Y-m-d', 'end_date' => 'date:Y-m-d', ]; } }