Hello,
what is the name of the variable that contains the name or ID of the logged in user in ESPO?
peter
what is the name of the variable that contains the name or ID of the logged in user in ESPO?
peter
private User $user;
public function __construct(
User $user
) {
$this->user = $user;
}
// Then access the user
$this->user->getId()
Comment