Support the ongoing development of Laravel.io →
posted 10 years ago
Session
Last updated 2 years ago.
0

Can everybody help me, please

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

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

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

Last updated 2 years ago.
0

Thank you so much for your help, zenny

Last updated 2 years 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-aimeos-package/

0

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.