Support the ongoing development of Laravel.io →
posted 4 months ago
Laravel
Last updated by @foreverlove0114 4 months ago.
0

I am also having this exact same problem! It started happening yesterday, whereas it was working perfectly fine the week before; the error is getting thrown on my custom auth middleware on the return $next($request); line. I'm going out of my mind trying to figure out what I did wrong!

Update: I kind of fixed it?? At least I'm not getting the error in my custom auth anymore... What I had to do was manipulate what was being returned by my API endpoint that I was hitting, as what it was trying to send back was the wrong datatype that my code was expecting. Check your route that you're hitting that's causing that error and try changing it to return something else. It sounds like it's coming from a redirect, so maybe the problem is in your web.php file??

Last updated by @bigdogdman 1 month ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.