bugfix
This commit is contained in:
@@ -15,6 +15,12 @@ class MediaRequest extends BaseRequest
|
||||
}),
|
||||
'string',
|
||||
],
|
||||
'name' => [
|
||||
Rule::requiredIf(function () {
|
||||
return request()->has('chunk') && request('chunk') == 1;
|
||||
}),
|
||||
'string',
|
||||
],
|
||||
'chunk' => 'required_with:chunk_count|integer|min:1|max:99',
|
||||
'chunk_count' => 'required_with:chunk|integer|min:1',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user