Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

register error #13

Open
impactcolor opened this issue Apr 8, 2019 · 3 comments
Open

register error #13

impactcolor opened this issue Apr 8, 2019 · 3 comments

Comments

@impactcolor
Copy link

Thanks for this package. I'm getting the following error:

Symfony\Component\Debug\Exception\FatalThrowableError  : Call to undefined method Illuminate\Foundation\Application::share()

  at /Volumes/Macintosh HD/Users/ohms/Sites/iprintco/vendor/beaudierman/ups/src/Beaudierman/Ups/UpsServiceProvider.php: 31
  27: 	 * @return void
  28: 	 */
  29: 	public function register()
  30: 	{
  31: 		$this->app['ups'] = $this->app->share(function($app)
  32: 		{
  33: 			return new Ups;
  34: 		});
  35: 	}
  36: 

I currently have not done anything only added
use Ups; to my controller.

@carcinocron
Copy link

What's your laravel version?

@impactcolor
Copy link
Author

5.6 @InstanceOfMichael

@carcinocron
Copy link

I'm guessing this package needs an update to support 5.4+.

https://laracasts.com/discuss/channels/laravel/undefined-method-illuminatefoundationapplicationshare-when-upgrading-to-laravel-54

I can't fix it right now (or in any predictable timeframe), but maybe it will work without the service provider or by extending the service provider.

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

No branches or pull requests

2 participants