registerControllerGenerator(); $this->registerMiddlewareGenerator(); $this->commands('command.controller.make', 'command.middleware.make'); } /** * Register the controller generator command. * * @return void */ protected function registerControllerGenerator() { $this->app->singleton('command.controller.make', function ($app) { return new ControllerMakeCommand($app['files']); }); } /** * Register the middleware generator command. * * @return void */ protected function registerMiddlewareGenerator() { $this->app->singleton('command.middleware.make', function ($app) { return new MiddlewareMakeCommand($app['files']); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return [ 'command.controller.make', 'command.middleware.make', ]; } }