Relative Content

Tag Archive for laravellaravel-11

How put sessions in Laravel 11 api routes?

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?

Laravel 11 not automatically registering policy

Laravel documentation says that laravel automatically registers policies when using correct naming and folder structure, but my policies are not registered. I have tried to view project detail with user that does not own the project and it works, but the function in policy returns false.