Laravel Middleware error: Argument #1 ($content) must be of type ?string, IlluminateRoutingRedirector given
I have this middleware in my project, that sometimes, gives me some problems on my live server, and I don't know why, but just sometimes, and not all the times that it is triggered. This is the error: SymfonyComponentHttpFoundationResponse::setContent(): Argument…