ixudra / curl

Custom PHP curl library for the Laravel 5 framework - developed by Ixudra
MIT License
561 stars 128 forks source link

Call to undefined method Illuminate\Foundation\Application::share() #88

Closed billyanto closed 6 years ago

billyanto commented 6 years ago

I have completed the installation "ixudra/curl": "^5.1" and put some code for testing, but there's some problem that show error Call to undefined method Illuminate\Foundation\Application::share().

error pointing to this directory

\vendor\ixudra\curl\src\Ixudra\Curl\CurlServiceProvider.php

and pointing to this function

    public function register()
    {
        $this->app['Curl'] = $this->app->share(
            function($app)
            {
                return new CurlService();
            }
        );
    }
billyanto commented 6 years ago

just place "ixudra/curl": "6.*" at composer and composer update