uniquewith-validator
uniquewith-validator copied to clipboard
How to add deleted_at, NULL
In Laravel Validation Rule, we use deleted_at, NULL to check only data which is not soft deleted. What to use to sync with same functionality.
What exactly do you mean by „to sync“?
In Laravel Validation, we use following :
'email' => 'required|max:50|unique:users,deleted_at,NULL'
to make sure that for new record, it will not check soft deleted data. To do same in unique_with validation, what we need to do, I tried with deleted_at example but not succeed. Further, to debug further, I wanted to debug query, but using invalid keys also, it does not give any error.
I want help in this