src/Ericmuigai/Pesapal/PesapalServiceProvider.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register()
    {
        $this->app->booting(function()
        {
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('Pesapal', 'Ericmuigai\Pesapal\Facades\Pesapal');
        });
        $this->app['pesapal'] = $this->app->share(function($app)
        {
            return new Pesapal($app['view']);
        });
    }
public function register ( ) { $ this -> app -> booting ( function ( ) { $ loader = \ Illuminate \ Foundation \ AliasLoader :: getInstance ( ) ; $ loader -> alias ( 'Pesapal' , 'Ericmuigai\Pesapal\Facades\Pesapal' ) ; } ) ; $ this -> app [ 'pesapal' ] = $ this -> app -> share ( function ( $ app ) { return new Pesapal ( $ app [ 'view' ] ) ; } ) ; }
Register the service provider.
Register the service provider .