diff --git a/Sidebar/AdminSidebar.php b/Sidebar/AdminSidebar.php index bc5f15e..02779df 100644 --- a/Sidebar/AdminSidebar.php +++ b/Sidebar/AdminSidebar.php @@ -43,7 +43,7 @@ public function __construct(Menu $menu, RepositoryInterface $modules, Container public function build() { foreach ($this->modules->enabled() as $module) { - $name = studly_case($module->getName()); + $name = studly_case($module->get('name')); $class = 'Modules\\' . $name . '\\Sidebar\\SidebarExtender'; if (class_exists($class)) {