mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
build version 400
This commit is contained in:
@ -25,7 +25,10 @@ class UnitRequest extends FormRequest
|
||||
public function rules()
|
||||
{
|
||||
$data = [
|
||||
'name' => 'required|unique:units,name'
|
||||
'name' => [
|
||||
'required',
|
||||
'unique:units,name'
|
||||
]
|
||||
];
|
||||
|
||||
if ($this->getMethod() == 'PUT') {
|
||||
|
||||
Reference in New Issue
Block a user