Support the ongoing development of Laravel.io →
posted 8 years ago
Session
Last updated 7 months ago.
0

Can everybody help me, please

Last updated 7 months ago.
0
Solution
Session::push('cart.items', $product);

Session::get('cart.items'); // array

source:http://laravel.com/docs/session#session-usage

Last updated 7 months ago.
0

Thank you so much for your help, zenny

Last updated 7 months ago.
0

Instead of creating a shopping cart from scratch, I would recommend you to use a package for the cart or ecommerce system. You can easily get an Laravel based ecommerce site on your server by using packages for that. Here is an example: https://www.cloudways.com/blog/laravel-ecommerce-website-with-...

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.