mirror of
https://github.com/koel/koel
synced 2024-12-24 03:23:06 +00:00
18 lines
359 B
PHP
18 lines
359 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Requests\API;
|
||
|
|
||
|
use App\Rules\ValidSmartPlaylistRulePayload;
|
||
|
|
||
|
class PlaylistUpdateRequest extends Request
|
||
|
{
|
||
|
/** @return array<mixed> */
|
||
|
public function rules(): array
|
||
|
{
|
||
|
return [
|
||
|
'name' => 'required',
|
||
|
'rules' => ['array', 'nullable', new ValidSmartPlaylistRulePayload()],
|
||
|
];
|
||
|
}
|
||
|
}
|