I am tryiong to upload a picture to my laravel 6.11.0 project and the limit is 2MB. How can I increase this value ?
here is the function
public function storeProductPic() {
$data = request()->validate([
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg'
]);
//uploading the image
$imageName = time().'.'.request()->image->getClientOriginalExtension();
request()->image->move(public_path('images'), $imageName);
$productPic = new ProductPic();
$productPic->link = "/images/".$imageName;
$productPic->save();
return back();
}