Fixed laravel 4.2 compatability