added activity method to session.
This commit is contained in:
@@ -262,6 +262,16 @@ class Payload {
|
||||
return $this->get(Session::csrf_token);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last activity for the session.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function activity()
|
||||
{
|
||||
return $this->session['last_activity'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Store the session payload in storage.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user