We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have created this function inside CartController
private $cart_id; public function __construct() { $this->cart_id = \Cookie::get('cart'); if ($this->cart_id) { } else { $this->cart_id = uniqid(); $this->setCartCookie(); } } public function setCartCookie() { if (!Cookie::hasQueued('cart')) { Cookie::queue( Cookie::make('cart', $this->cart_id, 60 * 24 * 30) ); } }
Although when logging out the cart is empty but the cookie still remains the same.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have created this function inside CartController
Although when logging out the cart is empty but the cookie still remains the same.
The text was updated successfully, but these errors were encountered: