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', ]; }