use IlluminateValidationRule; $request->validate([ 'phone' => [ 'required', Rule::unique('table_name', 'column_name')->ignore($request->id), ], ]);