mirror of
https://github.com/koel/koel
synced 2024-12-24 11:33:05 +00:00
21 lines
383 B
PHP
21 lines
383 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\V6\Requests;
|
||
|
|
||
|
use App\Http\Requests\API\Request;
|
||
|
|
||
|
/**
|
||
|
* @property-read array<string> songs
|
||
|
*/
|
||
|
class RemoveSongsFromPlaylistRequest extends Request
|
||
|
{
|
||
|
/** @return array<mixed> */
|
||
|
public function rules(): array
|
||
|
{
|
||
|
return [
|
||
|
'songs' => 'required|array',
|
||
|
'songs.*' => 'exists:songs,id',
|
||
|
];
|
||
|
}
|
||
|
}
|