Permalink
Browse files

Add get method to cookie facade.

  • Loading branch information...
taylorotwell committed Oct 28, 2013
1 parent b1334d1 commit 58ec2fe05f092bdd09f2e05d8a86633b97417cef
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/Illuminate/Support/Facades/Cookie.php
@@ -2,6 +2,18 @@
class Cookie extends Facade {
/**
* Retrieve a cookie from the request.
*
* @param string $key
* @param mixed $default
* @return string
*/
public static function get($key = null, $default = null)
{
return static::$app['request']->cookie($key, $default);
}
/**
* Get the registered name of the component.
*

0 comments on commit 58ec2fe

Please sign in to comment.