koel/app/Http/Requests/API/SongUpdateRequest.php
2020-09-06 23:20:42 +02:00

23 lines
397 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',
];
}
}