Protect or disable laravel artisan commands in production
While working on a product at VentureCraft, I wanted to make sure that there was no way I could accidentally screw myself over by running something like migrate:refresh in production. I put up a teaser on twitter which got some…
Revisionable now supports being used as a trait
One of the biggest requests that I would receive for my revisionable package was to allow it to work together with other packages like Ardent. Previously, the two could not work together as they were both fighting to be the…
Speeding up PHP unit tests 15 times
Unit testing is still something I feel I need to almost force myself to do, and what previously made it worse was that my tests took so long to run. An app I’m currently working on has less that 50%…
Contextual support is back, and it’s here to stay
First up, what exactly is contextual support? The term ‘contextual support’ itself lends the biggest hint, it’s being able to support your users proactively, where and when they are in most need of help. con·tex·tu·al (kn-tksch-l, kn-) adj. Of, involving,…
First do it, then do it right, then do it better
I was recently reading a writeup / interview on nettuts about Addy Osmani and there was one particular quote that resonated withy the way I’ve been thinking recently, “first do it, then do it right, then do it better”.
Build it, push it
For as long as I can remember, I’ve been obsessed with trying to come up with some multi million dollar web app idea the world has never seen before. On a daily basis I go through my RSS feeds looking…
Keeping revisions of your laravel model data
There's times where you want to be able to keep a revision history of all the changes that are made to your models, whether it be for accountability reasons or for providing the ability to roll back changes.
Using custom monolog handlers in Laravel
Being able to neatly and efficiently track and view errors in your app is crucial to keeping things flowing nicely for your users. This article takes a look at how you can use Monolog to help you stay in control of your errors.
Contributing to open source takes 2 willing parties
So I made a contribution that was merged into the core of the new Laravel 4 framework about a week back, it was incredibly minor, but I was nervous about submitting the pull request for it. After it being accepted soon after, any nerves I had disappeared, not about that request, that would just be stupid, but about contributing to large, very active, open source projects. Here's why.
For my 10,000th tweet, a thank you to Twitter
This post, together with the tweet that will go out with it, will mark my 10,000th tweet. Twitter’s given me a lot over the past 3 and a bit years, from being the base for my first startup – twithawk.com…