Reduce variable


#1

Hi,

can I reduce the variable:
auth.user.getRelated ('profile'). surname ?

Thanks


#2

Reduce ? Or reuse ?
You can assign that value to another variable or put it in the session, check the Adonis docs about session.

Regards