Skip to content

Commit

Permalink
search rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
momijizukamori committed Aug 2, 2023
1 parent 315f819 commit 1774103
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Http/Controllers/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ class SearchController extends Controller
{
public function index()
{
return view('search');
return view('search', ['items' => [
'brands' => Brand::cached(),
'categories' => Category::cached(),
'features' => Feature::cached(),
'attributes' => Attribute::cached(),
'colors' => Color::cached(),
'tags' => Tags::cached(),]]);
}
}

0 comments on commit 1774103

Please sign in to comment.