public function registerInstallCommand() { // add fetch command to artisan $this->app['l4gettext.install'] = $this->app->share(function ($app) { return new Commands\InstallCommand(new ProcessBuilder()); }); $this->commands('l4gettext.install'); }