Hi i am trying to set variable into session but every time flush my varible .
i am using
$cartArr = [
"menu_id" => $input["menu_id"],
"restaurent_id" => $input["menu_details"]["restaurent_id"],
"item_name" => $input["menu_details"]["menu_qty_name"],
"item_qty" => $input["menu_details"]["menu_qty_id"],
"item_img" => $input["menu_details"]["menu_type_image"],
"item_price" => $input["menu_details"]["menu_price"],
];
Session::put("my_cart", $cartValue);
some help me
laravel
session
laravel 5.4
217
1 Answred