src/HipChatLumenServiceProvider.php
public function register()
    {
        $this->app->singleton('hipchat', function ($app) {
            return new Client(config('hipchat.api_token'), config('hipchat.server_url'));
        });

        $this->app->alias(Bestit\HipChat\Facade\HipChat::class, 'HipChat');
    }
public function register()
    {
        $this->app->singleton('hipchat', function ($app) {
            return new Client(config('hipchat.api_token'), config('hipchat.server_url'));
        });

        $this->app->alias(Bestit\HipChat\Facade\HipChat::class, 'HipChat');
    }
public function register ( ) { $ this -> app -> singleton ( 'hipchat' , function ( $ app ) { return new Client ( config ( 'hipchat.api_token' ) , config ( 'hipchat.server_url' ) ) ; } ) ; $ this -> app -> alias ( Bestit \ HipChat \ Facade \ HipChat :: class , 'HipChat' ) ; }
Register the service provider and alias
Register the service provider and alias