Closed ghost closed 6 years ago
hi! Is it possible to sort EVENTS by cities, which in turn are related to restaurants? something like that public static $searchRelations = [ 'restaurants' => 'city' => ['title'], ];
You may set up a has many through relationship. https://laravel.com/docs/5.7/eloquent-relationships#has-many-through Then simply
public static $searchRelations = [ 'cities' => ['title'], ];
hi! Is it possible to sort EVENTS by cities, which in turn are related to restaurants? something like that public static $searchRelations = [ 'restaurants' => 'city' => ['title'], ];