Changes to cater for laravel version upgrade (http://laravel.com/docs/upgrade)