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