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