Skip to content

Commit d550feb

Browse files
committed
Update index method in ProductByCategoryController to accept Request parameter for enhanced filtering
1 parent 84362b0 commit d550feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Product/ProductByCategoryController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class ProductByCategoryController extends Controller
1313
{
14-
public function index($categoryUrl){
14+
public function index($categoryUrl,Request $request){
1515
$query=Product::with('categories')->whereHas('categories',function($query) use ($categoryUrl){
1616
$query->where('categories.category_url',$categoryUrl);
1717
});

0 commit comments

Comments
 (0)