问题描述
public function test(Request $request) {
$request->validate([
'email' => 'required|email|exists:contacts,email'
]);
// ...
return response()->json(['done!'],200);
}
在邮递员中尝试此操作时,我故意发送了无效的电子邮件。但是邮递员返回了一个错误。
错误:超出了maxRedirects。可能卡在了重定向循环http://127.0.0.1:8000/api/auth/test
中
这是api路线
Route::group(['prefix' => 'auth'],function () {
Route::get('test','Auth\ResetPasswordController@test');
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)