Is it possible to store an array within a Cookie ?
I'm trying this way:
$carrinho = array(array('frete' => '', 'mercados' => array()));
Cookie::queue('carrinho', $carrinho, 525600);
But I get the error:
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
This same array works fine if I try to store in a session .
I'm using Laravel 5.6