update min max code for facility type
This commit is contained in:
parent
31129602b1
commit
c8a3ba364d
@ -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'
|
||||
];
|
||||
}
|
||||
|
@ -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'
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user