public function __construct() { Session::start(); if (Request::env('SESSION')->alerts->exists()) { self::$alerts = json_decode(Request::env('SESSION')->alerts->val(), true); } }
public function destroy() { parent::destroy(); switch ($this->key) { case 'SESSION': Session::destroy(); break; } }
public static function get($value = null) { return Encrypter::md5(Request::env('SERVER')->REMOTE_ADDR->val() . Request::env('SERVER')->HTTP_USER_AGENT->val() . Request::env('SERVER')->HTTP_HOST->val() . Session::id() . $value); }