Request::hasCookie PHP 메소드

hasCookie() 공개 정적인 메소드

Determine if a cookie is set on the request.
public static hasCookie ( string $key ) : boolean
$key string
리턴 boolean
        public static function hasCookie($key)
        {
            return \Illuminate\Http\Request::hasCookie($key);
        }

Usage Example

 public function testHasCookie()
 {
     $this->assertThat($this->object->hasCookie('undefined cookie'), $this->equalTo(false));
     $this->assertThat($this->object->hasCookie('user'), $this->equalTo(true));
 }