Closed haroldkyle closed 4 years ago
Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.
Thanks!
Thanks, I'll let you know. In the meantime, is the workaround for ResponseFactory described here still necessary for Lumen? This is what triggers the Exception, after all.
@haroldkyle We experienced the same issues. We fixed it by replacing the workaround with:
$this->app->singleton('Illuminate\Contracts\Routing\ResponseFactory', function ($app) {
return new \Laravel\Lumen\Http\ResponseFactory;
});
Description:
All routes return error:
Routes worked fine with Lumen 6.x, but appear to have problems with the new class
Illuminate\Routing\UrlGenerator
from Laravel 7.12.0.Steps To Reproduce:
Fresh install, then I have a route whose controller simply responds:
return response()->json($model)
.The AppServiceProvider.php has the following, and it's
Illuminate\Routing\Redirector
that loads theIlluminate\Routing\UrlGenerator
: