src/Traits/LaratrustUserTrait.php
public function attachRoles($roles = [], $team = null)
    {
        foreach ($roles as $role) {
            $this->attachRole($role, $team);
        }

        return $this;
    }
public function attachRoles($roles = [], $team = null)
    {
        foreach ($roles as $role) {
            $this->attachRole($role, $team);
        }

        return $this;
    }
public function attachRoles ( $ roles = [ ] , $ team = null ) { foreach ( $ roles as $ role ) { $ this -> attachRole ( $ role , $ team ) ; } return $ this ; }
Attach multiple roles to a user.

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