src/ServiceProvider/BusinessControl.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register()
    {
        $this->app->singleton('businesscontrol', function ($app) {
            $config = $app->make('config')->get('business-control');
            return new BC($config['api_key'], $config['api_secret'], $config['access_token']);
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'businesscontrol' , function ( $ app ) { $ config = $ app -> make ( 'config' ) -> get ( 'business-control' ) ; return new BC ( $ config [ 'api_key' ] , $ config [ 'api_secret' ] , $ config [ 'access_token' ] ) ; } ) ; }
Register the service provider.
Register the service provider .