protected function registerServices() { $this->app->singleton('modules', function ($app) { $path = $app['config']->get('modules.paths.modules'); return new Repository($app, $path); }); }