0
It is possible to store a array within a Cookie?
I’m trying this way:
$carrinho = array(array('frete' => '', 'mercados' => array()));
Cookie::queue('carrinho', $carrinho, 525600);
But the error returns to me:
Argument 2 passed to Symfony Component Httpfoundation Cookie::__Construct() must be of the type string or null, array Given, called in /var/www/html/seusuper/vendor/Laravel/framework/src/Illuminate/Cookie/Cookiejar.php
That same array works normal if I try to store in a Session.
I’m using the Laravel 5.6
I will continue using Session even. I was not connected in this relation of sizes stored in cookies.
– Diego Vieira