belongsTo(User::class); } /** * Get all cities in this trip */ public function cities(): BelongsToMany { return $this->belongsToMany(City::class, 'city_trip') ->withPivot('order') ->withTimestamps() ->orderByPivot('order'); } }