mirror of
https://github.com/koel/koel
synced 2024-12-20 17:43:36 +00:00
21 lines
419 B
PHP
21 lines
419 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 tags
|
|
*/
|
|
class PutSongRequest extends BaseRequest
|
|
{
|
|
public function rules()
|
|
{
|
|
return [
|
|
'bucket' => 'required',
|
|
'key' => 'required',
|
|
'tags.duration' => 'required|numeric',
|
|
];
|
|
}
|
|
}
|