protected function getCookieElement()
    {
        if (! request()->hasCookie(config('cart_manager.cookie_name'))) {
            $cookie = str_random(20);
            Cookie::queue(Cookie::make(
                config('cart_manager.cookie_name'),
                $cookie,
                config('cart_manager.cookie_lifetime')
            ));
        } else {
            $cookie = Cookie::get(config('cart_manager.cookie_name'));
        }

        return ['cookie' => $cookie];
    }
protected function getCookieElement()
    {
        if (! request()->hasCookie(config('cart_manager.cookie_name'))) {
            $cookie = str_random(20);
            Cookie::queue(Cookie::make(
                config('cart_manager.cookie_name'),
                $cookie,
                config('cart_manager.cookie_lifetime')
            ));
        } else {
            $cookie = Cookie::get(config('cart_manager.cookie_name'));
        }

        return ['cookie' => $cookie];
    }
protected function getCookieElement ( ) { if ( ! request ( ) -> hasCookie ( config ( 'cart_manager.cookie_name' ) ) ) { $ cookie = str_random ( 20 ) ; Cookie :: queue ( Cookie :: make ( config ( 'cart_manager.cookie_name' ) , $ cookie , config ( 'cart_manager.cookie_lifetime' ) ) ) ; } else { $ cookie = Cookie :: get ( config ( 'cart_manager.cookie_name' ) ) ; } return [ 'cookie' => $ cookie ] ; }
Returns the cookie for the cart identification.

@return array
Returns the cookie for the cart identification .