Repositories/Entrust/EntrustUserRepository.php
public function update(array $data, $id)
    {
        if (array_key_exists('password', $data)) {
            $data['password'] = bcrypt($data['password']);
        }

        return parent::update($data, $id);
    }
public function update(array $data, $id)
    {
        if (array_key_exists('password', $data)) {
            $data['password'] = bcrypt($data['password']);
        }

        return parent::update($data, $id);
    }
public function update ( array $ data , $ id ) { if ( array_key_exists ( 'password' , $ data ) ) { $ data [ 'password' ] = bcrypt ( $ data [ 'password' ] ) ; } return parent :: update ( $ data , $ id ) ; }
Encrypt password before updating a user instance.

@param array $data

@return EloquentUser
Encrypt password before updating a user instance .