How to return custom session with modified DB fields
Hi there,
Currently to created custom session you do something along lines of:
If I modified the user fields that are saved to the db as follows:
I would expect that user in custom session to have email_verified, date_created etc. However as per attached image I am not seeing this as the case. Is there a reason for this?

2 Replies
its just changing the column names in the database, not the variable names.
You can assign it manually though, or in your case you could write a function that converts the keys from camel to snake case.
Yeah was kinda hoping that they would use our keys we gave when configuring to then return that modified versions.