mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
20 lines
366 B
PHP
20 lines
366 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
use App\Models\Song;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
/**
|
|
* @property-read array<string> $songs
|
|
*/
|
|
class UpdateQueueStateRequest extends Request
|
|
{
|
|
/** @return array<mixed> */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'songs' => ['array', Rule::exists(Song::class, 'id')],
|
|
];
|
|
}
|
|
}
|