private function prepareService()
    {
        /**
         * If CommodeCommonServiceProvider is not loaded yet, load it
         * and mark as registered in GhostServices
         */
        if (!($bound = $this->app->bound(ServiceShortCuts::CORE_INITIALIZED))) {
            $this->services(['LaravelCommode\Common\CommodeCommonServiceProvider']);
        }

        $withGhostServiceDo = function (GhostServices $appServices) use ($bound) {
            /**
             * If CommodeCommonServiceProvider is not loaded yet, load it
             * and mark as registered in GhostServices
             */
            if (!$bound) {
                $appServices->register('LaravelCommode\Common\CommodeCommonServiceProvider');
            }

            /**
             * Get and register service providers in ServiceManager
             */
            $services = $appServices->differUnique($this->uses(), true);

            /**
             * Register service proviers in laravel app
             * differing from already used ones
             */
            $this->services(array_diff($services, array_keys($this->app->getLoadedProviders())));

            /**
             * Mark current service as registered
             */
            $appServices->register(get_class($this));
        };

        $this->with(ServiceShortCuts::GHOST_SERVICE, $withGhostServiceDo);

        return $this;
    }
private function prepareService()
    {
        /**
         * If CommodeCommonServiceProvider is not loaded yet, load it
         * and mark as registered in GhostServices
         */
        if (!($bound = $this->app->bound(ServiceShortCuts::CORE_INITIALIZED))) {
            $this->services(['LaravelCommode\Common\CommodeCommonServiceProvider']);
        }

        $withGhostServiceDo = function (GhostServices $appServices) use ($bound) {
            /**
             * If CommodeCommonServiceProvider is not loaded yet, load it
             * and mark as registered in GhostServices
             */
            if (!$bound) {
                $appServices->register('LaravelCommode\Common\CommodeCommonServiceProvider');
            }

            /**
             * Get and register service providers in ServiceManager
             */
            $services = $appServices->differUnique($this->uses(), true);

            /**
             * Register service proviers in laravel app
             * differing from already used ones
             */
            $this->services(array_diff($services, array_keys($this->app->getLoadedProviders())));

            /**
             * Mark current service as registered
             */
            $appServices->register(get_class($this));
        };

        $this->with(ServiceShortCuts::GHOST_SERVICE, $withGhostServiceDo);

        return $this;
    }
private function prepareService ( ) { /**
         * If CommodeCommonServiceProvider is not loaded yet, load it
         * and mark as registered in GhostServices
         */ if ( ! ( $ bound = $ this -> app -> bound ( ServiceShortCuts :: CORE_INITIALIZED ) ) ) { $ this -> services ( [ 'LaravelCommode\Common\CommodeCommonServiceProvider' ] ) ; } $ withGhostServiceDo = function ( GhostServices $ appServices ) use ( $ bound ) { /**
             * If CommodeCommonServiceProvider is not loaded yet, load it
             * and mark as registered in GhostServices
             */ if ( ! $ bound ) { $ appServices -> register ( 'LaravelCommode\Common\CommodeCommonServiceProvider' ) ; } /**
             * Get and register service providers in ServiceManager
             */ $ services = $ appServices -> differUnique ( $ this -> uses ( ) , true ) ; /**
             * Register service proviers in laravel app
             * differing from already used ones
             */ $ this -> services ( array_diff ( $ services , array_keys ( $ this -> app -> getLoadedProviders ( ) ) ) ) ; /**
             * Mark current service as registered
             */ $ appServices -> register ( get_class ( $ this ) ) ; } ; $ this -> with ( ServiceShortCuts :: GHOST_SERVICE , $ withGhostServiceDo ) ; return $ this ; }
Prepares service for launching. If LaravelCommode\Common\CommodeCommonServiceProvider
is not registered in your app config, it will be forced to launch. Loads all services
used by current GhostService instance.

@return $this
Prepares service for launching . If LaravelCommode \ Common \ CommodeCommonServiceProvider is not registered in your app config it will be forced to launch . Loads all services used by current GhostService instance .