/home/techb158/immovalet.com/platform/core/dashboard/src/Providers
Edit: /home/techb158/immovalet.com/platform/core/dashboard/src/Providers/DashboardServiceProvider.php (2271B)
app->bind(DashboardWidgetInterface::class, function () {
return new DashboardWidgetCacheDecorator(
new DashboardWidgetRepository(new DashboardWidget)
);
});
$this->app->bind(DashboardWidgetSettingInterface::class, function () {
return new DashboardWidgetSettingCacheDecorator(
new DashboardWidgetSettingRepository(new DashboardWidgetSetting)
);
});
Helper::autoload(__DIR__ . '/../../helpers');
}
public function boot()
{
$this->setNamespace('core/dashboard')
->loadRoutes(['web'])
->loadAndPublishViews()
->loadAndPublishTranslations()
->publishAssets()
->loadMigrations();
Event::listen(RouteMatched::class, function () {
dashboard_menu()
->registerItem([
'id' => 'cms-core-dashboard',
'priority' => 0,
'parent_id' => null,
'name' => 'core/base::layouts.dashboard',
'icon' => 'fa fa-home',
'url' => route('dashboard.index'),
'permissions' => [],
]);
});
}
}