route('shop') : view('shop.closed'); } public function index(Request $request, ShopCatalog $catalog): View { $term = trim((string) $request->query('suche', '')); return view('shop.index', ['cards' => $catalog->cards($term), 'term' => $term]); } }