当我尝试构建语言切换器路由时,我不断得到路由 <>
Route::group(['prefix'=>'{language}'],function (){
Route::get('/', function () {
return view('welcome');
});
<li class="nav-item">
<a href="{{ route(Route::currentRouteName(), 'tw') }}" class="nav-link">TW</a>
</li>