public function registerCommands() { $this->app->singleton('command.cache.clear', function ($app) { return new ClearCommand($app['cache']); }); $this->commands('command.cache.clear'); }