mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Customer avatar validation (#732)
* Customer avatar validation https://huntr.dev/bounties/19f3e5f7-b419-44b1-9c37-7e4404cbec94/ * Customer avatar validation test https://huntr.dev/bounties/19f3e5f7-b419-44b1-9c37-7e4404cbec94/
This commit is contained in:
@ -92,6 +92,12 @@ class CustomerProfileRequest extends FormRequest
|
||||
],
|
||||
'shipping.fax' => [
|
||||
'nullable',
|
||||
],
|
||||
'customer_avatar' => [
|
||||
'nullable',
|
||||
'file',
|
||||
'mimes:gif,jpg,png',
|
||||
'max:20000'
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
@ -73,6 +73,12 @@ test('customer profile request validation rules', function () {
|
||||
],
|
||||
'shipping.fax' => [
|
||||
'nullable',
|
||||
],
|
||||
'customer_avatar' => [
|
||||
'nullable',
|
||||
'file',
|
||||
'mimes:gif,jpg,png',
|
||||
'max:20000'
|
||||
]
|
||||
],
|
||||
$request->rules()
|
||||
|
||||
Reference in New Issue
Block a user