public function register() { $this->app['command.test-factory-helper.generate'] = $this->app->share(function ($app) { return new GenerateCommand($app['files'], $app['view']); }); $this->commands('command.test-factory-helper.generate'); }