This article was first posted on my personal blog: neoi.sh
Recently I started using Inertia JS in a project and I had to change how pages were loaded. If you have used Inertia JS, you would already know that by default on the client side, pages are loaded from the Pages directory.
However, I had a use case that was not very easy to work with initially. The use case was simple, I…