2
0
Fork 0
mirror of https://github.com/koel/koel synced 2024-12-27 13:03:06 +00:00
koel/app/Http/Requests/API/InteractWithMultipleSongsRequest.php
2024-07-06 17:44:42 +02:00

20 lines
382 B
PHP

<?php
namespace App\Http\Requests\API;
use App\Models\Song;
use Illuminate\Validation\Rule;
/**
* @property array<string> $songs
*/
class InteractWithMultipleSongsRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'songs' => ['required', 'array', Rule::exists(Song::class, 'id')],
];
}
}