belongsToMany(Country::class, 'tour_countries', 'tour_id', 'country_id'); } public static function featuredTours(){ return Tour::whereHas('countries.continent') ->with('countries.continent') ->get(); } }