src/ApiHelperServiceProvider.php
/**
     * Register the application services.
     *
     * @return void
     */
Register the application services.
@return void
Register the application services . @return void
public function register()
    {
        $this->app->bind('doc', function () {
            return new Doc();
        });
        $this->mergeConfigFrom(
            __DIR__.'/config/api-helper.php', 'api-helper'
        );
        foreach ($this->routeMiddleware as $key => $middleware) {
            app('router')->aliasMiddleware($key, $middleware);
        }
    }
public function register ( ) { $ this -> app -> bind ( 'doc' , function ( ) { return new Doc ( ) ; } ) ; $ this -> mergeConfigFrom ( __DIR__ . '/config/api-helper.php' , 'api-helper' ) ; foreach ( $ this -> routeMiddleware as $ key => $ middleware ) { app ( 'router' ) -> aliasMiddleware ( $ key , $ middleware ) ; } }
Register the application services.
Register the application services .
// Register the application bindings. // Default Package Configuration // register route middleware.