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
|
|
|
/**
|
2024-04-24 20:44:47 +00:00
|
|
|
* @property string $bucket
|
2020-12-22 20:11:22 +00:00
|
|
|
* @property array<string> $tags
|
2024-04-24 20:44:47 +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
|
|
|
|
{
|
2020-12-22 20:11:22 +00:00
|
|
|
/** @return array<mixed> */
|
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
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|