It seem to not work with Inertia. All classes are type hinted to return Illuminate\Http\Response. The problem is that Inertia mostly returns JsonResponse instead which does not extendIlluminate\Http\Response, but instead Symfony\Component\HttpFoundation\Response.
I assume type hinting Symfony\Component\HttpFoundation\Response instead would fix all errors. Let me know if you want me to do a PR for this :)
It seem to not work with Inertia. All classes are type hinted to return
Illuminate\Http\Response. The problem is that Inertia mostly returnsJsonResponseinstead which does not extendIlluminate\Http\Response, but insteadSymfony\Component\HttpFoundation\Response.I assume type hinting
Symfony\Component\HttpFoundation\Responseinstead would fix all errors. Let me know if you want me to do a PR for this :)