Skip to content
Permalink
Browse files

Update HttpServiceProvider for Laravel 5.4 (#26)

laravel 5.4 removes the share method, this uses the singleton method which has been in laravel since 4.2.
  • Loading branch information
gjrdiesel authored and Mulkave committed Jan 30, 2017
1 parent 553bee1 commit 7bb833e54e7938f3908507bbf8696aa56dd5487b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Vinelab/Http/HttpServiceProvider.php
@@ -18,7 +18,7 @@ class HttpServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app['vinelab.httpclient'] = $this->app->share(function ($app) {
$this->app->singleton('vinelab.httpclient',function ($app) {
return new Client();
});

0 comments on commit 7bb833e

Please sign in to comment.
You can’t perform that action at this time.