mirror of
https://github.com/koel/koel
synced 2024-12-20 01:23:16 +00:00
23 lines
396 B
PHP
23 lines
396 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
/**
|
|
* @property string[] $songs
|
|
* @property mixed[] $data
|
|
*/
|
|
class SongUpdateRequest extends Request
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return $this->user()->is_admin;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'data' => 'required|array',
|
|
'songs' => 'required|array',
|
|
];
|
|
}
|
|
}
|