setUserAuthenticatable method
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);
}