Solve your laravel problems.
$id = $request->id; $validation = Validator::make($request->all(), [ 'email' => 'unique:customers,email,'.$request->id ]);