Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

devondahon's avatar

What is the Database Session last_activity column referencing ?

Why isn't it a timestamp ? What is this integer referencing ?

$table->integer('last_activity');

I didn't find anything in the documentation related to this.

0 likes
1 reply
devondahon's avatar
devondahon
OP
Best Answer
Level 3

I found my answer, unix timestamp:

>>> gmdate("Y-m-d\TH:i:s\Z", 1594130718)
=> "2020-07-07T14:05:18Z"

Please or to participate in this conversation.