Answer the question
In order to leave comments, you need to log in
Why do Eloquent model exceptions always have an error code of 0?
Why does findOrFail and similar throw error code 0 and not some normal one? Should I write in tests that an exception with code 0 is expected? What other exceptions can be thrown by such code so as not to be confused later?
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