$user public property
The user object representing the authentication status or the ID of the user application component. Starting from version 2.0.2, this can also be a configuration array for creating the object.
public yii\web\User|array|string $user = 'user'
Please login to continue.