protected function registerModelScanCommand() { $this->app->singleton('command.model.scan', function ($app) { return new ModelScanCommand($app['files'], $this); }); }