image validate in laravel validater
snippet in php

image validate in laravel validater

user4004

$this->validate($request, ['file' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',]);