app/app/Providers/LdapServiceProvider.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register()
    {
        $this->app->singleton('ldap', function()
        {
            if ($this->app->environment('local') && isset($_ENV['OFF_HLC'])) {
                return new LdapLocal;
            }
            return new adLDAP($this->getLdapConfig());
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'ldap' , function ( ) { if ( $ this -> app -> environment ( 'local' ) && isset ( $ _ENV [ 'OFF_HLC' ] ) ) { return new LdapLocal ; } return new adLDAP ( $ this -> getLdapConfig ( ) ) ; } ) ; }
Register the service provider.
Register the service provider .