Decorating Laravel repositories

1st March 2017 11:16 pm

As mentioned previously , when building any nontrivial Laravel application, it's prudent to decouple our controllers from the Eloquent ORM…

My first Laravel package

19th February 2017 3:50 pm

For some time now I've had a Laravel middleware I use extensively to add ETags to HTTP requests. I often use it for work projects, but…

Integrating Behat with Laravel

18th February 2017 9:25 pm

The Gherkin format used by tools like Cucumber is a really great way of specifying how your application will work. It's easy for even non…

Testing Laravel Middleware

29th November 2016 11:00 pm

It's widely accepted that high-level integration tests alone do not make for a good test suite. Ideally each individual component of your…

Easy static asset versioning in PHP

26th November 2016 9:40 pm

It's prudent to cache static assets such as images, Javascript and CSS to improve performance, but that raises the issue of changes not…