Closed guratr closed 1 year ago
Hey there, thanks for reporting this issue.
I'm not able to replicate this locally using the example from the Inertia docs.
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?
Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
laravel new bug-report --github="--public"
After you've posted the repository, we'll try to reproduce the issue.
Thanks!
Hey closing this one because we haven't heard back 👍
Hi. I have some route like this
And while adding inertia error response instead of laravel error page, i noticed that if the route is not registered (for example site.com/pagethatnotinrouter), then the following code from docs example throws an error.
And the reason is that HandleInertiaRequests as well as all other middleware won't be processed. The solution i found is to add this code in the end of my web.php file
I think it's worth adding a note about this in the documentation with a (perhaps better) solution.