Open xron89 opened 6 years ago
Add this to SagePayServiceProvider.php in the register part:
$this->app->singleton('laravelsagepay', function ($app) { return new SagePay; }); remove old: $this->app['laravelsagepay'] = $this->app->share(function($app) { return new SagePay; }); Copy from Config file to App/config away you go.
Looks like this has been long standing with a working fix in the issue... Any way we can get a PR so the package is updated
Hi, followed your steps after running the following command;
php artisan vendor:publish --provider="Kofikwarteng\LaravelSagepay\SagepayServiceProvider"
I get the following error; Call to undefined method Illuminate\Foundation\Application::share()
I assume this hasn't been updated for Laravel versions past 5.4