tighten / ziggy

Use your Laravel routes in JavaScript.
MIT License
3.83k stars 247 forks source link

fix: infinite loop #760

Closed M0einRahmani closed 1 month ago

M0einRahmani commented 2 months ago

"I used (new Ziggy())->jsonSerialize() in Exceptions\Handler.php in my Laravel + InertiaJS project. When an error or exception occurs, I noticed that the resolveBindings function gets stuck in an infinite loop."

bakerkretzmar commented 2 months ago

Can you explain what exactly the issue is here and how this PR solves it? Also please revert the formatting changes that aren't part of your fix.