public function registerListCommand() { // add list command to artisan $this->app['l4gettext.list'] = $this->app->share(function ($app) { return new Commands\ListCommand(); }); $this->commands('l4gettext.list'); }