/** * Changes the current language and returns to previous page * @return Redirect */ public function changeLang($locale = null) { \LaravelGettext::setLocale($locale); return \Redirect::to(\URL::previous()); }