-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Hello, I have a problem with this error.
I checked every issue here and all of them are timeouts after 2 minutes of page loading, but for me, the problem occurs after page load < 2 minutes. More precisely seconds after js load and submit.
Laravel 8, PHP 7.3.7
My controller:
class ReservationController extends Controller
{
public function createReservation(Request $request){
// Here validation fails with timeout message
$request->validate([
'room' => 'required|exists:rooms,id',
'email' => 'required|email',
'phone' => 'required|max:128',
'dateReservation' => ['required', new DateInPastCheck, new DateArrivalLeaveCheck],
'name' => 'required|string|min:3|max:150',
'g-recaptcha-response' => [new GoogleReCaptchaV3ValidationRule('order')],
]);
// ...
}
}
But when I test before request validation everything passes normally.
class ReservationController extends Controller
{
public function createReservation(Request $request){
dd(GoogleReCaptchaV3::verifyResponse(
$request->input('g-recaptcha-response'),
$request->getClientIp()
)
->getMessage());
// ....
}
}
Roaderchik and sorbingw99910
Metadata
Metadata
Assignees
Labels
No labels