2020-06-07 20:43:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests\API;
|
|
|
|
|
2022-07-29 06:47:10 +00:00
|
|
|
use App\Http\Requests\Request;
|
2022-08-03 21:02:07 +00:00
|
|
|
use App\Rules\SupportedAudioFile;
|
2020-06-07 20:43:04 +00:00
|
|
|
use Illuminate\Http\UploadedFile;
|
|
|
|
|
2020-09-06 21:20:42 +00:00
|
|
|
/** @property UploadedFile $file */
|
2022-07-29 06:47:10 +00:00
|
|
|
class UploadRequest extends Request
|
2020-06-07 20:43:04 +00:00
|
|
|
{
|
2020-12-22 20:11:22 +00:00
|
|
|
/** @return array<mixed> */
|
2020-06-07 20:43:04 +00:00
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
2022-08-03 21:02:07 +00:00
|
|
|
'file' => ['required', 'file', new SupportedAudioFile()],
|
2020-06-07 20:43:04 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|