code: 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);
          });
      }
docs: Register the service provider.
  
  @return void