Skip to content

Commit 73c759a

Browse files
committed
fix: correct parameter name for category binding in Routes
1 parent 4da5b9e commit 73c759a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static function admin(
8181
});
8282

8383
Route::bind('category', function ($value, $route) {
84-
$category_type = $route->parameter('category-type');
84+
$category_type = $route->parameter('category_type');
8585
$category_type_id = is_object($category_type) ? $category_type->id : $category_type;
8686

8787
try {

0 commit comments

Comments
 (0)