Fix for Laravel 4.1

Issue #1