with yii2, what would be the most ideal way to to save within the User table, last login…
- User
with yii2, what would be the most ideal way to to save within the User table, last login data. I was thinking of using “last_login” as a integer and save with time(). but not sure if I should make a behavior, or if theirs a easier way? but the code needs to be clean and to the point without any hacks. Could you we discuss this before any code is displayed.
- Assistant