src/LdapAuthServiceProvider.php
public function register()
    {
        // Register 'ldap' as authentication method
        Auth::provider('ldap', function ($app) {

            $model = $app['config']['auth']['providers']['ldap-users']['model'];

            // Create a new LDAP connection
            $connection = new Ldap($this->getLdapConfig());

            return new LdapAuthUserProvider($connection, $model);
        });
    }
public function register()
    {
        // Register 'ldap' as authentication method
        Auth::provider('ldap', function ($app) {

            $model = $app['config']['auth']['providers']['ldap-users']['model'];

            // Create a new LDAP connection
            $connection = new Ldap($this->getLdapConfig());

            return new LdapAuthUserProvider($connection, $model);
        });
    }
Register the service provider.

@return void