🔧 Permet 2 URL pour la même action

This commit is contained in:
Clement 2020-09-10 15:54:56 +02:00
parent 1fb0562823
commit 2dcdefe8e5

View File

@ -28,7 +28,7 @@ Route::get('/home', static function () {
return redirect(\route('login')); return redirect(\route('login'));
} }
}); });
Route::get('/list', 'PublicController@list')->name('public.list'); Route::get('/list{lang}', 'PublicController@list')->name('public.list')->where('lang', '(|e)');
Route::get('/{slug}', 'PublicController@show')->name('public.view'); Route::get('/{slug}', 'PublicController@show')->name('public.view');