mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
Image uploading
This commit is contained in:
18
backend/app/Http/Requests/UploadImageRequest.php
Normal file
18
backend/app/Http/Requests/UploadImageRequest.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
class UploadImageRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* Get the validation rules that apply to the request.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'image' => ['required', 'image', 'mimes:jpg,png,jpeg', 'max:15000'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user