public function addRoles(Collection $roles)
    {
        foreach($roles as $role){
            $this->roles->add($role);
        }
        
    }
public function addRoles(Collection $roles)
    {
        foreach($roles as $role){
            $this->roles->add($role);
        }
        
    }
public function addRoles ( Collection $ roles ) { foreach ( $ roles as $ role ) { $ this -> roles -> add ( $ role ) ; } }
Add a role to the user.

@param Role $role

@return void
Add a role to the user .