Laravel 4.2+ compatibility. Fixes #3