From 6362ab7a0ef0eb5775e1f56b2a51e6ad3cb93f18 Mon Sep 17 00:00:00 2001 From: Muhammad Basit Tkxel Date: Mon, 14 Nov 2022 17:43:40 +0500 Subject: [PATCH] CUR-4390 fixed the validation issue --- app/Http/Requests/V1/LtiTool/KalturaAPISettingRequest.php | 4 ++-- app/Http/Requests/V1/LtiTool/KomodoAPISettingRequest.php | 4 ++-- app/Http/Requests/V1/LtiTool/VimeoAPISettingRequest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Requests/V1/LtiTool/KalturaAPISettingRequest.php b/app/Http/Requests/V1/LtiTool/KalturaAPISettingRequest.php index 1f8200db7..8b6b8dca6 100644 --- a/app/Http/Requests/V1/LtiTool/KalturaAPISettingRequest.php +++ b/app/Http/Requests/V1/LtiTool/KalturaAPISettingRequest.php @@ -24,8 +24,8 @@ public function authorize() public function rules() { return [ - 'pageSize' => 'required|string|max:50', - 'pageIndex' => 'required|string|max:50', + 'pageSize' => 'required|integer|max:50', + 'pageIndex' => 'required|integer|max:50', 'searchText' => 'nullable|string|max:255', 'organization_id' => 'required|exists:organizations,id' ]; diff --git a/app/Http/Requests/V1/LtiTool/KomodoAPISettingRequest.php b/app/Http/Requests/V1/LtiTool/KomodoAPISettingRequest.php index 60289c9f5..eec9056c6 100644 --- a/app/Http/Requests/V1/LtiTool/KomodoAPISettingRequest.php +++ b/app/Http/Requests/V1/LtiTool/KomodoAPISettingRequest.php @@ -24,8 +24,8 @@ public function authorize() public function rules() { return [ - 'page' => 'required|string|max:50', - 'per_page' => 'required|string|max:50', + 'page' => 'required|integer|max:50', + 'per_page' => 'required|integer|max:50', 'search' => 'nullable|string|max:255', 'organization_id' => 'required|exists:organizations,id' ]; diff --git a/app/Http/Requests/V1/LtiTool/VimeoAPISettingRequest.php b/app/Http/Requests/V1/LtiTool/VimeoAPISettingRequest.php index 1921bbfe6..3e4e5fe15 100644 --- a/app/Http/Requests/V1/LtiTool/VimeoAPISettingRequest.php +++ b/app/Http/Requests/V1/LtiTool/VimeoAPISettingRequest.php @@ -24,8 +24,8 @@ public function authorize() public function rules() { return [ - 'page' => 'required|string|max:50', - 'per_page' => 'required|string|max:50', + 'page' => 'required|integer|max:50', + 'per_page' => 'required|integer|max:50', 'query' => 'nullable|string|max:255', 'organization_id' => 'required|exists:organizations,id' ];