added activity method to session.
This commit is contained in:
parent
baac975fc6
commit
a6c083f311
|
|
@ -262,6 +262,16 @@ public function token()
|
||||||
return $this->get(Session::csrf_token);
|
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.
|
* Store the session payload in storage.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue