Skip to content

Commit 8fa0556

Browse files
committed
Fixed controller issue
1 parent c31664d commit 8fa0556

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

routes/menu.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
foreach ($menuItems as $menuItem) {
4343
if ($menuItem->url != null) {
4444
$controller = $menuItem->controller ?? '\CodexShaper\Menu\Http\Controllers\MenuItemController@setRoute';
45-
46-
if (!class_exists($controller)) {
45+
$partials = explode('@', $menuItem->controller);
46+
47+
if (! class_exists($partials[0])) {
4748
$controller = '\CodexShaper\Menu\Http\Controllers\MenuItemController@setRoute';
4849
}
4950

0 commit comments

Comments
 (0)