is_unique rule doesn't work with softDeletes |
When using the is_unique rule for validation like so:
Code: 'rules' => 'required|is_natural_no_zero|is_unique[teams.member_id]' It works okay, unless you set $softDeletes = true in the model. Then it will find the soft-deleted record, and it won't pass validation. |
Messages In This Thread |
is_unique rule doesn't work with softDeletes - by [email protected] - 05-14-2020, 06:24 AM
RE: is_unique rule doesn't work with softDeletes - by kilishan - 05-14-2020, 06:45 AM
RE: is_unique rule doesn't work with softDeletes - by [email protected] - 05-14-2020, 08:10 AM
|