'datetime', 'created_at' => 'datetime', 'coordinates' => Point::class, 'metadata' => 'array', ]; } public function trip(): BelongsTo { return $this->belongsTo(Trip::class); } public function recordedBy(): BelongsTo { return $this->belongsTo(User::class, 'recorded_by_user_id'); } public function related(): MorphTo { return $this->morphTo(); } }