Laravel's middleware empty request

Uriah Ahrak posted 10 months ago

I'm using laravel 5.5, and tymon/jwt-auth as my jwt service provider. When I'm using the JWTAuth facade from the controllers - all goes fine - I get the token and can manipulate any thing.

When I'm trying to use the JWTAuth facade inside a custom middleware I created - the headers are gone and the request is empty. Quite sure it isn't a problem in laravel's middleware since JWT's middleware can get the token by the headers.

I'm running an nginx reverse proxy on port 80 which redirects to apache server on port 8080 and apache runs the laravel project.

Suggestion anyone?

Sign in to participate in this thread!

We'd like to thank these amazing companies for supporting us