Make changes to work with Laravel 4