setGuard method

void setGuard(
  1. String guardName
)

Sets the user's authentication guard name.

Implementation

void setGuard(String guardName) {
  setAttribute('auth_guard', guardName);
}