Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session store not set on request. #18

Open
tariqtraders opened this issue May 6, 2019 · 2 comments
Open

Session store not set on request. #18

tariqtraders opened this issue May 6, 2019 · 2 comments

Comments

@tariqtraders
Copy link

I am using this package with api

when i tried to add item using following code

$cart = App::make('cart'); $cart->addItem([ 'product_id' => 1, 'unit_price' => 100, 'quantity' => 1 ]);

it gives me following error

Session store not set on request.

what to do now

@hassansin
Copy link
Owner

This library stores cart items in session storage. So you need to have sessions enabled to use this library.

@tariqtraders
Copy link
Author

@hassansin can you please tell me how i enable session for api's in laravel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants