added chunking rules
This commit is contained in:
@@ -4,5 +4,12 @@ namespace App\Http\Requests;
|
||||
|
||||
class MediaRequest extends BaseRequest
|
||||
{
|
||||
/* empty */
|
||||
public function postRules(): array
|
||||
{
|
||||
return [
|
||||
'id' => 'required_with:chunk|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