Support for Laravel 4.2

Fixes for newer Laravel