Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add deleted_at, NULL #114

Open
pawan-singleinterface opened this issue Feb 6, 2020 · 2 comments
Open

How to add deleted_at, NULL #114

pawan-singleinterface opened this issue Feb 6, 2020 · 2 comments

Comments

@pawan-singleinterface
Copy link

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.

@livkiss
Copy link
Owner

livkiss commented Feb 6, 2020

What exactly do you mean by „to sync“?

@pawan-singleinterface
Copy link
Author

pawan-singleinterface commented Feb 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants