laravel image validation
snippet in php

laravel image validation

user7657

'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',

image validate in laravel validater

user2257

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