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

19 lines
394 B
PHP

<?php
namespace App\Http\Requests\API;
use App\Http\Requests\Request;
use App\Rules\SupportedAudioFile;
use Illuminate\Http\UploadedFile;
/** @property UploadedFile $file */
class UploadRequest extends Request
{
/** @return array<mixed> */
public function rules(): array
{
return [
'file' => ['required', 'file', new SupportedAudioFile()],
];
}
}