Changes required for Laravel 4.1.26 upgrade