update min max code for facility type

This commit is contained in:
Daeng Deni Mardaeni 2024-06-09 19:51:00 +07:00
parent 31129602b1
commit c8a3ba364d
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@
: array : array
{ {
return [ 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' 'name' => 'required|string|max:100'
]; ];
} }

View File

@ -33,7 +33,7 @@
$this->_id = json_decode(json_decode(file_get_contents('php://input'))->components[0]->snapshot)->data->id; $this->_id = json_decode(json_decode(file_get_contents('php://input'))->components[0]->snapshot)->data->id;
return [ 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' 'name' => 'required|string|max:100'
]; ];
} }