Fix Compatibility with laravel 5