/** * Calculate the current Locale path prefix if needed * @return string */ protected function getRealLocale() { return LaravelLocalization::getCurrentLocale() == LaravelLocalization::getDefaultLocale() ? '' : '/' . LaravelLocalization::getCurrentLocale(); }