re: Using isset() and empty() hurts your code VIEW POST

re: Good post. 👍 Laravel (Eloquent) ships with a nice findOrFail() method for models which throws a ModelNotFoundException when query does not return ...

Thanks Niko!

I enjoy using your approach as well! It forces the client to react in case i cannot deliver what i'm asked to. It does a really good job of exposing problems immediately when they happen. I do know that this approach doesn't warrant the admiration of every peer, not sure why though :D Well, hopefully someone will educate me on this one day.

code of conduct - report abuse