src/Traits/LaratrustUserTrait.php
public function attachPermissions($permissions = [], $team = null)
    {
        foreach ($permissions as $permission) {
            $this->attachPermission($permission, $team);
        }

        return $this;
    }
public function attachPermissions($permissions = [], $team = null)
    {
        foreach ($permissions as $permission) {
            $this->attachPermission($permission, $team);
        }

        return $this;
    }
public function attachPermissions ( $ permissions = [ ] , $ team = null ) { foreach ( $ permissions as $ permission ) { $ this -> attachPermission ( $ permission , $ team ) ; } return $ this ; }
Attach multiple permissions to a user.

@param  mixed  $permissions
@param  mixed  $team
@return static
Attach multiple permissions to a user .