conversion
conversion copied to clipboard
Call to undefined method [package]
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
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.
I will update the repo as soon as the get the time. @alexking appreciate your help :)