[ 'nullable', 'file', 'mimes:gif,jpg,png', 'max:20000', ], 'avatar' => [ 'nullable', new Base64Mime(['gif', 'jpg', 'png']), ], ]; } }