support for Laravel 4.1 and above