Need to validate a zip code in Laravel? Here’s a very simple custom validator class which does exactly that.

Decouple your controllers from your data storage layer, without losing the nice, fluent query API. In next week’s blog post, have your cake, and eat it.

Laravel makes it easy to keep your controllers trim. This quick tip demonstrates how to retrieve a user with a given username, or return an error if he doesn’t exist, and has become a staple of our Laravel projects.