Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method [package] #3

Open
bogdanghervan opened this issue Feb 19, 2015 · 2 comments
Open

Call to undefined method [package] #3

bogdanghervan opened this issue Feb 19, 2015 · 2 comments

Comments

@bogdanghervan
Copy link

I'm receiving the following error trying to make a conversion under Laravel 5:

exception 'BadMethodCallException' with message 'Call to undefined method [package]' in /var/www/xxxxxxx/src/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:226

Looks like the package method is no longer available on the service provider. This article might help:
https://medium.com/@morrislaptop/bridging-laravel-4-packages-to-laravel-5-2081f19643c6

@alexking
Copy link

I ran into this issue on Laravel 5 as well, a temporary fix is to create a Service Provider like this https://gist.github.com/alexking/79655a8be2ae6360dc20 in app/Providers, and reference that in config/app.php (App\Providers\ConversionServiceProvider).

I'd just do this as a pull request, but I'm not sure that it works with Laravel 4 - basically I just removed the package call, and moved the alias out of the booting callback.

@abhimanyu003
Copy link
Owner

I will update the repo as soon as the get the time. @alexking appreciate your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants