Add compatibility with Laravel 4.*