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