Browse Source

🔧 Permet 2 URL pour la même action

laravel_8
Clement 8 months ago
parent
commit
2dcdefe8e5
  1. 2
      routes/web.php

2
routes/web.php

@ -28,7 +28,7 @@ Route::get('/home', static function () {
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');

Loading…
Cancel
Save