mirror of
https://github.com/koel/koel
synced 2024-12-22 18:43:21 +00:00
23 lines
492 B
PHP
23 lines
492 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API\ObjectStorage\S3;
|
|
|
|
use App\Http\Requests\API\ObjectStorage\S3\Request as BaseRequest;
|
|
|
|
/**
|
|
* @property string $bucket
|
|
* @property array<string> $tags
|
|
* @property string $key
|
|
*/
|
|
class PutSongRequest extends BaseRequest
|
|
{
|
|
/** @return array<mixed> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'bucket' => 'required',
|
|
'key' => 'required',
|
|
'tags.duration' => 'required|numeric',
|
|
];
|
|
}
|
|
}
|