mirror of
https://github.com/koel/koel
synced 2024-12-24 03:23:06 +00:00
18 lines
337 B
PHP
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',
|
|
];
|
|
}
|
|
}
|