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

21 lines
383 B
PHP
Raw Normal View History

2022-07-04 10:39:02 +00:00
<?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',
];
}
}