koel/app/Http/Requests/API/DeleteSongsRequest.php

16 lines
289 B
PHP
Raw Normal View History

<?php
2023-06-05 21:46:41 +00:00
namespace App\Http\Requests\API;
/** @property-read array<string> $songs */
class DeleteSongsRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'songs.*' => 'required|exists:songs,id',
];
}
}