src/Providers/BackendServiceProvider.php
/**
     * Register the application services.
     *
     * @return void
     */
Register the application services.
@return void
Register the application services . @return void
public function register()
    {
        require_once __DIR__ . '/../Helpers/MainHelper.php';
        require_once __DIR__ . '/../Helpers/InputHelper.php';
        $imageProvider = new \Intervention\Image\ImageServiceProvider($this->app);
        $imageProvider->register();
        $loader = \Illuminate\Foundation\AliasLoader::getInstance();
        $loader->alias('Image', 'Intervention\Image\Facades\Image');
        $this->app['backend::install'] = $this->app->share(function()
        {
            return new \Nhiepphong\Backend\Commands\BackendCommand();
        });
        $this->commands('backend::install');
    }
public function register ( ) { require_once __DIR__ . '/../Helpers/MainHelper.php' ; require_once __DIR__ . '/../Helpers/InputHelper.php' ; $ imageProvider = new \ Intervention \ Image \ ImageServiceProvider ( $ this -> app ) ; $ imageProvider -> register ( ) ; $ loader = \ Illuminate \ Foundation \ AliasLoader :: getInstance ( ) ; $ loader -> alias ( 'Image' , 'Intervention\Image\Facades\Image' ) ; $ this -> app [ 'backend::install' ] = $ this -> app -> share ( function ( ) { return new \ Nhiepphong \ Backend \ Commands \ BackendCommand ( ) ; } ) ; $ this -> commands ( 'backend::install' ) ; }
Register the application services.
Register the application services .
/*
         * Register the service provider for the dependency.
         */ /*
         * Create aliases for the dependency.
         */