Laravel model validation with traits

Our application is built around fourty different models, and counting. The biggest thing we deal with is making sure that all of the data is entered correctly. For instance, names must be alpha (with some special characters), we use a custom email validator that allows for "pre-defined" email types which…

Attaching generated files with Laravel & SwiftMailer

In one of our projects we use Laravel to send emails via the default SwiftMailer implementation. On top of that, we use mPDF to generate a PDF, attach it and then send it to customers. We use mPDF because it allows us to do stuff we can't do in other…

Laravel 4 & Dokku Queues, a follow up

This is a follow on post from something I posted few weeks back about Laravel 4 & Dokku: Queue Workers. In the original post I said something silly: I could run the queue command on another server under supervisor but that would be lame and require me to run two…

Walking with Zac

Our Golden Retriever, Zac has started being a lot more obedient when off the lead since his neutering a few weeks back. He's still a complete nutter at home, but whilst we're walking he's staying a lot closer to us and his recall his much better! It's fun walking with…

Leanpub snippets for Sublime

Have you always wanted to write a book? You should check out Leanpub, they help people like you and I publish their own books as digital downloads, but (and here's the kicker) you can continue selling your book on other stores and get it printed, without owing them anything! Do…

Change case in filenames with Git

Over the weekend we had a pull request made for one of the SublimeText organisation plugins which contained a couple of commits that were done so that the read me file would change from readme.md to README.md - it was like this: Renamed readme.md to readme-old.md…