If a redirect response is returned from a route, an exception is thrown:
Return value of Octoper\HtmlMinify\HtmlMinifyMiddleware::handle() must be an instance of Illuminate\Http\Response, instance of Illuminate\Http\RedirectResponse returned
Might a return type of Symfony\Component\HttpFoundation\Response work? I think that all Illuminate responses inherit from it.
Description
If a redirect response is returned from a route, an exception is thrown:
Might a return type of
Symfony\Component\HttpFoundation\Response
work? I think that allIlluminate
responses inherit from it.