all(); if (\abs(\time() - $request['signature']['timestamp']) > 15) { return response()->json(['message' => 'Success'], 200); } if(\hash_equals(\hash_hmac('sha256', $input['signature']['timestamp'] . $input['signature']['token'], config('services.mailgun.webhook_signing_key')), $input['signature']['signature'])) { ProcessMailgunWebhook::dispatch($request->all())->delay(rand(2, 10)); } return response()->json(['message' => 'Success.'], 200); } }