Add compatibility for laravel 5

This change will allow the extension to composer update when using laravel 5