I have the management of a store and when I want to see the contents of the car Laravel is asking me to log in, the route was not protected with this validation and I do not know what can happen, this is the view controller for that action
public function Carro(){
if (Session::has('carrito')) {
$arreglo =Session::get('carrito');
$total=0;
foreach ($arreglo as $key => $value) {
$total=$arreglo[$key]['attr12']+$total;
}
return view('cart',['total'=>$total]);
}else{
return view('cart');
}
}