koel/app/Http/Requests/V6/API/RemoveSongsFromPlaylistRequest.php

21 lines
376 B
PHP
Raw Normal View History

2022-07-04 10:39:02 +00:00
<?php
namespace App\Http\Requests\V6\API;
2022-07-04 10:39:02 +00:00
use App\Http\Requests\API\Request;
/**
2022-07-27 15:32:36 +00:00
* @property-read array<string> $songs
2022-07-04 10:39:02 +00:00
*/
class RemoveSongsFromPlaylistRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'songs' => 'required|array',
'songs.*' => 'exists:songs,id',
];
}
}