Fix for Laravel 4