public function handle()
    {
        // Here we'll try to locate our local user model from
        // the LDAP users model. If one isn't located,
        // we'll create a new one for them.
        $model = $this->findUser() ?: $this->model->newInstance();

        if (! $model->exists) {
            Event::dispatch(new Importing($this->user, $model));
        }

        Event::dispatch(new Synchronizing($this->user, $model));

        $this->sync($model);

        Event::dispatch(new Synchronized($this->user, $model));

        return $model;
    }
public function handle()
    {
        // Here we'll try to locate our local user model from
        // the LDAP users model. If one isn't located,
        // we'll create a new one for them.
        $model = $this->findUser() ?: $this->model->newInstance();

        if (! $model->exists) {
            Event::dispatch(new Importing($this->user, $model));
        }

        Event::dispatch(new Synchronizing($this->user, $model));

        $this->sync($model);

        Event::dispatch(new Synchronized($this->user, $model));

        return $model;
    }
public function handle ( ) { // Here we'll try to locate our local user model from // the LDAP users model. If one isn't located, // we'll create a new one for them. $ model = $ this -> findUser ( ) ? : $ this -> model -> newInstance ( ) ; if ( ! $ model -> exists ) { Event :: dispatch ( new Importing ( $ this -> user , $ model ) ) ; } Event :: dispatch ( new Synchronizing ( $ this -> user , $ model ) ) ; $ this -> sync ( $ model ) ; Event :: dispatch ( new Synchronized ( $ this -> user , $ model ) ) ; return $ model ; }
Imports the current LDAP user.

@return Model
Imports the current LDAP user .