Return value of cookie.

This commit is contained in:
Taylor Otwell 2012-05-29 17:00:23 -05:00
parent 91c64b38a7
commit 69d9257a50
2 changed files with 224 additions and 224 deletions

View File

@ -44,7 +44,7 @@ public static function has($name)
*/
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);
}