src/Traits/LaratrustUserTrait.php
public function syncPermissions($permissions = [], $team = null, $detaching = true)
    {
        return $this->syncModels('permissions', $permissions, $team, $detaching);
    }
public function syncPermissions($permissions = [], $team = null, $detaching = true)
    {
        return $this->syncModels('permissions', $permissions, $team, $detaching);
    }
public function syncPermissions ( $ permissions = [ ] , $ team = null , $ detaching = true ) { return $ this -> syncModels ( 'permissions' , $ permissions , $ team , $ detaching ) ; }
Sync permissions to the user.

@param  array  $permissions
@param  mixed  $team
@param  boolean  $detaching
@return static
Sync permissions to the user .