Answer the question
In order to leave comments, you need to log in
How to exclude a specific model from the sample result through the model?
Hello. There is a sample like this:
$users = User::where('name', 'John')->orWhere('name', 'Vasja')->get()
How to exclude the model where for example from the result "last_name" = 'Doe'
?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question