From c8a3ba364db3c194d3e8bac1a30c3ce9d67c7224 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Sun, 9 Jun 2024 19:51:00 +0700 Subject: [PATCH] update min max code for facility type --- Http/Requests/FacilityType/StoreFacilityTypeRequest.php | 2 +- Http/Requests/FacilityType/UpdateFacilityTypeRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Http/Requests/FacilityType/StoreFacilityTypeRequest.php b/Http/Requests/FacilityType/StoreFacilityTypeRequest.php index e8ff66a..942d353 100644 --- a/Http/Requests/FacilityType/StoreFacilityTypeRequest.php +++ b/Http/Requests/FacilityType/StoreFacilityTypeRequest.php @@ -28,7 +28,7 @@ : array { return [ - 'kode' => 'required|string|max:3|min:3|unique:facility_types,kode', + 'kode' => 'required|string|max:4|min:4|unique:facility_types,kode', 'name' => 'required|string|max:100' ]; } diff --git a/Http/Requests/FacilityType/UpdateFacilityTypeRequest.php b/Http/Requests/FacilityType/UpdateFacilityTypeRequest.php index 79ebf12..27704b2 100644 --- a/Http/Requests/FacilityType/UpdateFacilityTypeRequest.php +++ b/Http/Requests/FacilityType/UpdateFacilityTypeRequest.php @@ -33,7 +33,7 @@ $this->_id = json_decode(json_decode(file_get_contents('php://input'))->components[0]->snapshot)->data->id; return [ - 'kode' => 'required|string|max:3|min:3|unique:facility_types,kode,' . $this->_id, + 'kode' => 'required|string|max:4|min:4|unique:facility_types,kode,' . $this->_id, 'name' => 'required|string|max:100' ]; }