mirror of
https://github.com/robonen/metr.git
synced 2026-06-20 10:05:22 +00:00
Image uploading
This commit is contained in:
@@ -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