fix for use with any Laravel 4.x version.