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

18 lines
301 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\API;
/**
* @property-read array<string> $songs
*/
class ChangeSongsVisibilityRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'songs' => 'required|exists:songs,id',
];
}
}