Skip to content

Commit 96251c8

Browse files
committed
Fixed ReflectionException
When you try to visit the show method for a CRUD controller, the ReflectionException was thrown. Simple fix by adding the `except` parameter for registering a resource controller.
1 parent 3afbfca commit 96251c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
'uses' => 'Admin\\' . ucfirst(camel_case($menu->name)) . 'Controller@massDelete'
2525
]);
2626
Route::resource(strtolower($menu->name),
27-
'Admin\\' . ucfirst(camel_case($menu->name)) . 'Controller');
27+
'Admin\\' . ucfirst(camel_case($menu->name)) . 'Controller', ['except' => 'show']);
2828
break;
2929
case 3:
3030
Route::controller(strtolower($menu->name),

0 commit comments

Comments
 (0)