koel/app/Http/Controllers/V6/Requests/AddSongsToPlaylistRequest.php
2022-07-27 20:08:57 +02:00

20 lines
379 B
PHP

<?php
namespace App\Http\Controllers\V6\Requests;
use App\Http\Requests\API\Request;
/**
* @property-read array<string> $songs
*/
class AddSongsToPlaylistRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'songs' => 'required|array',
'songs.*' => 'exists:songs,id',
];
}
}