Вход Регистрация
Файл: concrete5.7.5.6/concrete/vendor/illuminate/support/Illuminate/Support/Facades/Cookie.php
Строк: 30
<?php namespace IlluminateSupportFacades;

/**
 * @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  $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.
     *
     * @return string
     */
    
protected static function getFacadeAccessor() { return 'cookie'; }

}
Онлайн: 1
Реклама