src/AmoCrmServiceProvider.php
public function register()
    {
        $this->app->singleton('amocrm', function (Container $app) {
            $config = $app['config'];
            return new AmoCrmManager($config);
        });

        $this->app->singleton('amocrm.fields', function (Container $app) {
            $manager = $app['amocrm'];

            return $manager->getFields();
        });

        $this->app->singleton('amocrm.b2bfamily', function (Container $app) {
            $manager = $app['amocrm'];

            return $manager->getB2BFamily();
        });
    }
public function register()
    {
        $this->app->singleton('amocrm', function (Container $app) {
            $config = $app['config'];
            return new AmoCrmManager($config);
        });

        $this->app->singleton('amocrm.fields', function (Container $app) {
            $manager = $app['amocrm'];

            return $manager->getFields();
        });

        $this->app->singleton('amocrm.b2bfamily', function (Container $app) {
            $manager = $app['amocrm'];

            return $manager->getB2BFamily();
        });
    }
Register the service provider.

@return void