Drop unique constraint on 'cif' in debitures table

Remove the unique constraint on the 'cif' field in the debitures table and refactor the `UniqueCifExceptZero` validation rule to handle the uniqueness check more robustly. Also, add an unused import statement for `UniqueExcept` in `DebitureRequest`.
This commit is contained in:
Daeng Deni Mardaeni
2024-11-01 09:39:41 +07:00
parent 26009d796b
commit 5201cdb0e3
3 changed files with 53 additions and 17 deletions

View File

@@ -4,6 +4,7 @@
use Illuminate\Foundation\Http\FormRequest;
use Modules\Lpj\Rules\UniqueCifExceptZero;
use Modules\Lpj\Rules\UniqueExcept;
class DebitureRequest extends FormRequest
{