From 6daa07888882106bb9620224e00e49f1c9c18110 Mon Sep 17 00:00:00 2001 From: Martin Zurowietz Date: Wed, 1 Sep 2021 14:19:19 +0200 Subject: [PATCH] Fix ID validation in requests --- src/Http/Requests/ComputeImage.php | 2 +- src/Http/Requests/ComputeVolume.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Requests/ComputeImage.php b/src/Http/Requests/ComputeImage.php index 06746112..457d3fff 100644 --- a/src/Http/Requests/ComputeImage.php +++ b/src/Http/Requests/ComputeImage.php @@ -35,7 +35,7 @@ public function rules() { return [ 'distance' => 'required|numeric|min:1', - 'label_id' => 'required|id|exists:labels,id', + 'label_id' => 'required|integer|exists:labels,id', ]; } diff --git a/src/Http/Requests/ComputeVolume.php b/src/Http/Requests/ComputeVolume.php index a8eb8e5d..2ee5aede 100644 --- a/src/Http/Requests/ComputeVolume.php +++ b/src/Http/Requests/ComputeVolume.php @@ -35,7 +35,7 @@ public function rules() { return [ 'distance' => 'required|numeric|min:1', - 'label_id' => 'required|id|exists:labels,id', + 'label_id' => 'required|integer|exists:labels,id', ]; }