Hi all,
I have a question I can’t find the answer to.
Why users field store the email
field instead of id
?
You know that email may change but id won’t change.
Also id
key works on panel but updating with email when page saved:
----
Customerid:
- feYobpjD
----
In same way, updating with email
instead of id even send ID data like that:
page('mypage')->update([
'customerId' => kirby()->user()->id(),
]);
Thanks in advance.