public function boot() { $this->app['events']->listen('locale.changed', function () { $this->setLocale(); }); $this->setLocale(); }