setUserAuthenticatable method

void setUserAuthenticatable(
  1. Authenticatable user
)

Sets the authenticated user from an Authenticatable instance.

Implementation

void setUserAuthenticatable(Authenticatable user) {
  setAttribute('user', user.toAuthArray());
  setAttribute('authenticatable', user);
  setAttribute('userId', user.getAuthIdentifier());
  setAttribute('isAuthenticated', true);
  setAttribute('isGuest', false);
}