I am not sure if Middleware provides something like that, but a workaround could be setting a flag in the session and in another additional Middleware you check if the flag has been set.
So in all your other Middleware you have to turn true and only when the logic within was successful you set the session flag.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community