src/ApiServiceProvider.php
protected function registerApiHelper(Application $app)
    {
        $app->singleton(Factory::class, function ($app) {
            $request = $app['request'];
            $config = $app['config'];

            return new Factory($request, $config);
        });

        $app->alias(Factory::class, 'apihelper');
    }
protected function registerApiHelper(Application $app)
    {
        $app->singleton(Factory::class, function ($app) {
            $request = $app['request'];
            $config = $app['config'];

            return new Factory($request, $config);
        });

        $app->alias(Factory::class, 'apihelper');
    }
protected function registerApiHelper ( Application $ app ) { $ app -> singleton ( Factory :: class , function ( $ app ) { $ request = $ app [ 'request' ] ; $ config = $ app [ 'config' ] ; return new Factory ( $ request , $ config ) ; } ) ; $ app -> alias ( Factory :: class , 'apihelper' ) ; }
Register the helper class.

@param \Illuminate\Contracts\Foundation\Application $app

@return void
Register the helper class .