modulePath . '/' . $this->configFile)) { $this->mergeConfigFrom($this->modulePath . '/' . $this->configFile, $this->moduleKey); } /** * Load Module routes if existent */ if (file_exists($this->modulePath . '/' . $this->routesFile)) { $this->loadRoutesFrom($this->modulePath . '/' . $this->routesFile); } /** * Load Module migrations */ $this->loadMigrationsFrom($this->modulePath . '/' . $this->migrationsPath); /** * Load Module views */ $this->loadViewsFrom($this->modulePath . '/' . $this->viewsPath, $this->moduleKey); /** * Load Module translations */ $this->loadJsonTranslationsFrom($this->modulePath . '/' . $this->translationsPath); $this->app->make(Router::class)->pushMiddlewareToGroup('web', SetUser::class); } public function shouldDiscoverEvents(): bool { return true; } }