Compatibility with laravel 4.2