How are you guys?
In Laravel 11 how many do I try to put sessions for the shop’s cart by Api routes, the sessions don’t store!
Do you Have a solution for it?
even in Laravel 11 kernel.php removed!
now for the cart’s session should I use a route in web.php?
2
Answers
By default, your application’s routes are configured and loaded by the bootstrap/app.php file:
You can use the session() helper functions
On the blade:
On the controller: