I followed this:
https://laravel.com/docs/11.x/middleware#manually-managing-laravels-default-global-middleware
And have had no problems.
Summer Sale! All accounts are 50% off this week.
hi every one I have a issue with middleware which i defined inside bootstrap/app.php in laravel 11 these middlewares does not have access to session (read/write)
(if i manually same middleware for route inside route/web.php for my routes, those middleware works perfectly)
I checked with laravel 9 which I define same midddleware inside kernel.php, it work correctly
what should I do to define global middleware inside app.php and access to the session?
Please or to participate in this conversation.