Using renamed method to get all enabled modules

parent 6d08d8f3
......@@ -47,7 +47,7 @@ class AdminSidebar implements Sidebar, ShouldCache
{
event($event = new BuildingSidebar($this->menu));
foreach ($this->modules->enabled() as $module) {
foreach ($this->modules->allEnabled() as $module) {
$lowercaseModule = strtolower($module->get('name'));
if ($this->hasCustomSidebar($lowercaseModule) === true) {
$class = config("asgard.{$lowercaseModule}.config.custom-sidebar");
......
......@@ -91,7 +91,7 @@ class DashboardController extends AdminBaseController
*/
private function bootWidgets(RepositoryInterface $modules)
{
foreach ($modules->enabled() as $module) {
foreach ($modules->allEnabled() as $module) {
if (! $module->widgets) {
continue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment