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