Well, I am facing uniqueness conflicts, because as I am using softDeletes(), the deleted records present in the database are conflicting with the new registered records, as the name column has the unique attribute and because of this the system does not Allows me to register a new name that is the same as the deleted record, what do I do?
I tried to use the following logic in validate to prevent the system from validating records that have already been deleted: $request->validate([ 'name' => [ 'required', 'string', 'max:255', Rule::unique('aud_etapas_documentos')->where(function ($query) { $query->whereNull('deleted_at'); }), ], 'icon' => 'required|string|max:255', 'lado_timeline' => 'required|in:left,rigth', ], $messages); And with that, I hoped that these uniqueness conflicts would no longer occur with records that had already been deleted from the system.