query('sort', 'default'); $tours = Tour::with([ 'originCity', 'city', 'tourDepartures', ]) ->applySort($sort) ->paginate(3) ->withQueryString(); return view('tours.index', compact('title', 'tours', 'sort')); } public function show(Tour $tour) { $title= 'جزئیات تور'; $tour->load(['file', 'originCity', 'city', 'tourDepartures', 'comments.user']); return view('tours.show', compact('title' , 'tour')); } }