Make this work with all versions of Laravel 4.