Added support for both laravel versions 4.0 and 4.1