In my laravel 4.2 application, i want to store the cart item details in session.
cartId =>[
0 => [
productId => x,
quantity => y
],
1 => [
productId => u,
quantity => v
],
2 => [
productId => l,
quantity => m
]
]
I didn't found a way except this
Session::push('user.teams', 'developers');
for storing as array in session. but the same is not applicable here