Minor fix for store request validation
This commit is contained in:
parent
7b0bfeb2af
commit
8ee9261baa
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ class StoreRecurringExpenseRequest extends Request
|
|||
if(!empty($this->client_id))
|
||||
$rules['client_id'] = 'bail|sometimes|exists:clients,id,company_id,'.auth()->user()->company()->id;
|
||||
|
||||
$rules['frequency_id'] = 'required|integer|digits_between:1,12';
|
||||
|
||||
return $this->globalRules($rules);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue