Make it compatible with Laravel 4.x