mirror of
https://github.com/koel/koel
synced 2024-12-19 17:13:09 +00:00
19 lines
376 B
PHP
19 lines
376 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
use App\Rules\AllPlayablesAreAccessibleBy;
|
|
|
|
/**
|
|
* @property-read array<string> $songs
|
|
*/
|
|
class AddSongsToPlaylistRequest extends Request
|
|
{
|
|
/** @inheritdoc */
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'songs' => ['required', 'array', new AllPlayablesAreAccessibleBy($this->user())],
|
|
];
|
|
}
|
|
}
|