protected function setupServiceProviders(): void
    {
        /** @var array $providers */
        $providers = $this->app->config()['container']['providers'];

        // Iterate through all the providers
        foreach ($providers as $provider) {
            $this->register($provider);
        }

        // If this is not a dev environment
        if (! $this->app->debug()) {
            return;
        }

        /** @var array $devProviders */
        $devProviders = $this->app->config()['container']['devProviders'];

        // Iterate through all the providers
        foreach ($devProviders as $provider) {
            $this->register($provider);
        }
    }
protected function setupServiceProviders(): void
    {
        /** @var array $providers */
        $providers = $this->app->config()['container']['providers'];

        // Iterate through all the providers
        foreach ($providers as $provider) {
            $this->register($provider);
        }

        // If this is not a dev environment
        if (! $this->app->debug()) {
            return;
        }

        /** @var array $devProviders */
        $devProviders = $this->app->config()['container']['devProviders'];

        // Iterate through all the providers
        foreach ($devProviders as $provider) {
            $this->register($provider);
        }
    }
protected function setupServiceProviders ( ) : void { /** @var array $providers */ $ providers = $ this -> app -> config ( ) [ 'container' ] [ 'providers' ] ; // Iterate through all the providers foreach ( $ providers as $ provider ) { $ this -> register ( $ provider ) ; } // If this is not a dev environment if ( ! $ this -> app -> debug ( ) ) { return ; } /** @var array $devProviders */ $ devProviders = $ this -> app -> config ( ) [ 'container' ] [ 'devProviders' ] ; // Iterate through all the providers foreach ( $ devProviders as $ provider ) { $ this -> register ( $ provider ) ; } }
Setup service providers.

@return void
Setup service providers .