我得到了两个错误,一个接一个
1- 301永久移动
2- 404未找到
从ajax访问该路由,路由为
Route::get('/recipientForm/{name?}', function ($name = 'test') {
return 'test';
});
在我的例子中,我在url的末尾使用了额外的斜杠"/"。当我选择remove的时候就可以了
我得到了两个错误,一个接一个
1- 301永久移动
2- 404未找到
从ajax访问该路由,路由为
Route::get('/recipientForm/{name?}', function ($name = 'test') {
return 'test';
});
在我的例子中,我在url的末尾使用了额外的斜杠"/"。当我选择remove的时候就可以了