I would like to save and retrieve an array type session in Laravel type in PHP
Example :
PHP :
$_SESSION['dado']['dado1'] = $valor;
Recovering
echo $_SESSION['dado']['dado1'];
Laravel
$request->session()->put(
[ ['dado']['dado1'] = $valor ]
)
But how would I recover?
So:
echo $request->session()->get(['dado']['dado1'])
?