src/EasyCurlServiceProvider.php
public function register()
    {
        $this->app->singleton('ecurl', function () {

            return (new EasyCurl())
                ->setTimeOut($this->app['config']['ecurl.timeout'])
                ->setProxy($this->app['config']['ecurl.proxy'])
                ->setUserAgent($this->app['config']['ecurl.userAgent']);
        });
    }
public function register()
    {
        $this->app->singleton('ecurl', function () {

            return (new EasyCurl())
                ->setTimeOut($this->app['config']['ecurl.timeout'])
                ->setProxy($this->app['config']['ecurl.proxy'])
                ->setUserAgent($this->app['config']['ecurl.userAgent']);
        });
    }
Register the service provider.

@return void