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

22 lines
422 B
PHP
Raw Normal View History

<?php
namespace App\Http\Requests\API;
use App\Rules\ValidSmartPlaylistRulePayload;
/**
* @property-read $name
* @property-read array $rules
*/
class PlaylistUpdateRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'name' => 'required',
'rules' => ['array', 'nullable', new ValidSmartPlaylistRulePayload()],
];
}
}