Commit 69d9257a authored by Taylor Otwell's avatar Taylor Otwell

Return value of cookie.

parent 91c64b38
...@@ -44,7 +44,7 @@ class Cookie { ...@@ -44,7 +44,7 @@ class Cookie {
*/ */
public static function get($name, $default = null) public static function get($name, $default = null)
{ {
if (isset(static::$jar[$name])) return static::$jar[$name]; if (isset(static::$jar[$name])) return static::$jar[$name]['value'];
return array_get(Request::foundation()->cookies->all(), $name, $default); return array_get(Request::foundation()->cookies->all(), $name, $default);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment