diff --git a/Speed/StoreServerRequest.php b/Speed/StoreServerRequest.php index 58c15f2..b76a988 100644 --- a/Speed/StoreServerRequest.php +++ b/Speed/StoreServerRequest.php @@ -15,6 +15,16 @@ use Illuminate\Validation\Validator; */ class StoreServerRequest extends BaseApiRequest { + protected function prepareForValidation() + { + // Map camelCase to snake_case for rateLimit + $this->merge([ + 'limits' => [ + 'rate_limit' => $this->input('limits.rateLimit'), + ], + ]); + } + public function rules(): array { $rules = Server::getRules();