I am not sure how to do it exactly but I try to give you some hints where I would look. Maybe you can get the token with the auth()->user()
function and then register your middleware after (!) the middleware which hydrates the current user is executed.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community