Deploy to Heroku buttons with Laravel

I submitted Cachet to Reddit earlier yesterday morning and had great feedback from it all! It's been great! I'm happy to see that people like the idea and that it's useful to people. One of the first issues submitted was adding a Deploy to Heroku button. I was a bit…

Slides from my talk

Update: the video is now available. I gave my first talk ever at the great Staffs Web Meetup on Tuesday. For my first ever talk I decided to tackle a sensitive subject that I feel isn't spoken enough about and that's Depression & Anxiety. The talk seemed to go really…

Caching routes with Laravel 4

Yesterday I blogged about how I organise my Laravel routes within my Laravel applications, this post is a follow on to more route goodness. I was experimenting with a clients website, trying to speed the page load up on the server side. A neat trick that I came up with…

Cachet

TLDR: Find Cachet on GitHub. I realised a few days ago that Anorak is built on two services: Stripe GitHub Both of which are out of my control. If either of these go down, then I'm unable to do anything to fix the problem. How do I inform the would-be…

Organising routes in Laravel 4

Sorry that it took me so long to write this, I've been up to a lot recently and completely lost track of time. A few weekends back I tweeted a screenshot of how I lay out my routes in any of my Laravel projects. It somewhat exploded due to a…

Introducing Hippo

Let's start with the history. When I first started developing, Anorak I started with PHP_Codesniffer to deal with checking code standards. Although it does its job well, it's very much aimed at only being used as a command line tool. I'm sure if I'd spent more time with it,…

Sneak Peek at Anorak

Over the last few months I've been working on my latest side project. I've already mentioned it on Twitter a couple of times, it's Anorak. This blog post explains why I'm working on Anorak and what it'll help developers achieve. Over the last couple of years PHP has started to…

Sunset in Buxton

These photos were taken on my iPhone 6 (not the plus model) and I'm pretty amazed by the quality. There is very little editing in them, just some colour correction from where the screen was showing darker blacks. Some of the colours that we saw were incredible, if you're near…

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…