2016-06-13 09:04:42 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests\API\ObjectStorage\S3;
|
|
|
|
|
|
|
|
use App\Http\Requests\API\ObjectStorage\S3\Request as BaseRequest;
|
|
|
|
|
2016-08-03 10:42:11 +00:00
|
|
|
/**
|
|
|
|
* @property string bucket
|
|
|
|
* @property array tags
|
2017-06-03 16:35:08 +00:00
|
|
|
* @property string key
|
2016-08-03 10:42:11 +00:00
|
|
|
*/
|
2016-06-13 09:04:42 +00:00
|
|
|
class PutSongRequest extends BaseRequest
|
|
|
|
{
|
2018-08-30 03:11:47 +00:00
|
|
|
public function rules(): array
|
2016-06-13 09:04:42 +00:00
|
|
|
{
|
|
|
|
return [
|
|
|
|
'bucket' => 'required',
|
|
|
|
'key' => 'required',
|
2016-06-13 09:11:41 +00:00
|
|
|
'tags.duration' => 'required|numeric',
|
2016-06-13 09:04:42 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|