koel/app/Http/Requests/API/PlaylistStoreRequest.php

18 lines
266 B
PHP
Raw Normal View History

2015-12-13 04:42:28 +00:00
<?php
namespace App\Http\Requests\API;
/**
* @property string[] $songs
*/
2015-12-13 04:42:28 +00:00
class PlaylistStoreRequest extends Request
{
2018-08-30 03:11:47 +00:00
public function rules(): array
2015-12-13 04:42:28 +00:00
{
return [
'name' => 'required',
'songs' => 'array',
];
}
}