koel/app/Http/Requests/API/ObjectStorage/S3/PutSongRequest.php

23 lines
443 B
PHP
Raw Normal View History

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
{
public function rules()
{
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
];
}
}