I recently ran into a nasty little bug in the Laracasts codebase that took me a while to track down. Once I realized what the problem was, the solution only required a few characters. In this lesson, we'll review a small demo that reproduces an issue related to casting a filtered PHP array to JSON.
View the source code for this episode on GitHub.