laravel validate 'image'=>'required ',' file' vs 'image'=>'required|file' code example
Example: laravel image validation
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',