mirror of
https://github.com/koel/koel
synced 2024-12-21 10:03:10 +00:00
19 lines
394 B
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()],
|
|
];
|
|
}
|
|
}
|