Вход Регистрация
Файл: system/vendor/illuminate/support/Facades/Cookie.php
Строк: 34
<?php

namespace IlluminateSupportFacades;

/**
 * @method static void queue(...$parameters)
 * @method static unqueue($name)
 * @method static array getQueuedCookies()
 *
 * @see IlluminateCookieCookieJar
 */
class Cookie extends Facade
{
    
/**
     * Determine if a cookie exists on the request.
     *
     * @param  string  $key
     * @return bool
     */
    
public static function has($key)
    {
        return ! 
is_null(static::$app['request']->cookie($keynull));
    }

    
/**
     * Retrieve a cookie from the request.
     *
     * @param  string|null  $key
     * @param  mixed  $default
     * @return string|array|null
     */
    
public static function get($key null$default null)
    {
        return static::
$app['request']->cookie($key$default);
    }

    
/**
     * Get the registered name of the component.
     *
     * @return string
     */
    
protected static function getFacadeAccessor()
    {
        return 
'cookie';
    }
}
Онлайн: 0
Реклама