public function handle($event)
    {
        $guard = null;

        // We'll retrieve the auth guard if available.
        if (property_exists($event, 'guard')) {
            $guard = $event->guard;
        }

        // Before we bind the users LDAP model, we will verify they are using
        // the Adldap authentication provider, and the required trait.
        if ($this->isUsingAdldapProvider($guard) && $this->canBind($event->user)) {
            $event->user->setLdapUser(
                Resolver::byModel($event->user)
            );
        }
    }
public function handle($event)
    {
        $guard = null;

        // We'll retrieve the auth guard if available.
        if (property_exists($event, 'guard')) {
            $guard = $event->guard;
        }

        // Before we bind the users LDAP model, we will verify they are using
        // the Adldap authentication provider, and the required trait.
        if ($this->isUsingAdldapProvider($guard) && $this->canBind($event->user)) {
            $event->user->setLdapUser(
                Resolver::byModel($event->user)
            );
        }
    }
public function handle ( $ event ) { $ guard = null ; // We'll retrieve the auth guard if available. if ( property_exists ( $ event , 'guard' ) ) { $ guard = $ event -> guard ; } // Before we bind the users LDAP model, we will verify they are using // the Adldap authentication provider, and the required trait. if ( $ this -> isUsingAdldapProvider ( $ guard ) && $ this -> canBind ( $ event -> user ) ) { $ event -> user -> setLdapUser ( Resolver :: byModel ( $ event -> user ) ) ; } }
Binds the LDAP user record to their model.

@param \Illuminate\Auth\Events\Login|\Illuminate\Auth\Events\Authenticated $event

@return void
Binds the LDAP user record to their model .