filer validation in laravel

PHP
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',use Illuminate\Validation\Rule;

Validator::make($data, [
    'email' => [
        'required',
        Rule::unique('users')->ignore($user->id),
    ],
]);
Source

Also in PHP: