loadMigrationsFrom(module_path($this->moduleName, 'Database/Migrations')); $modules = ModuleManager::toCollection(); foreach ($modules as $module) { if ($module->get('config', false)) { $alias = $module->getAlias(); $this->app->bind('Conf_'.$alias, function () use ($alias) { return Configuration::getModule($alias); }); } } } /** * Register the service provider. * * @return void */ public function register() { $this->app->register(RouteServiceProvider::class); } /** * Get the services provided by the provider. * * @return array */ public function provides(): array { return []; } }