mirror of
https://github.com/koel/koel
synced 2024-12-20 01:23:16 +00:00
23 lines
389 B
PHP
23 lines
389 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
/**
|
|
* @property array songs
|
|
* @property array 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',
|
|
];
|
|
}
|
|
}
|