Код: Выделить всё
public function handle($request, Closure $next)
{
$locale = $request->segment(1);
session(['locale' => $locale]);
app()->setLocale($locale);
return $next($request);
}
Код: Выделить всё
Route::prefix('{lang}')->where(['lang' => '[a-zA-Z]{2}'])->middleware('locale')->group(function () {
Route::get('conversation/{from}/{to}', 'ConversationController@secureChatPage')->name('chat');
....
Код: Выделить всё
public function secureChatPage($from, $to)
{ ... }
Есть ли простой способ обойти эту проблему?
Подробнее здесь: https://stackoverflow.com/questions/591 ... -parameter
Мобильная версия