Compatibility with Laravel 4.1