added activity method to session.

This commit is contained in:
Taylor Otwell
2012-02-01 16:04:17 -06:00
parent baac975fc6
commit a6c083f311

View File

@@ -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.
*