koel/app/Http/Requests/API/RemoveSongsFromPlaylistRequest.php
2023-06-05 23:46:41 +02:00

18 lines
337 B
PHP

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