I use Laravel Valet for locally serving multiple Laravel, WordPress and vanilla PHP applications.
I have one specific application that is vanilla PHP that I access via Valet from http://myapplication.test
This application has a /public/index.php file which is auto-magically displayed when I go to the test URL, as Valet knows to look in the public directory.
The problem I am having is, when I put a /public/test.php file and try to access this by going to http://myapplication.test/test.php ...it does not serve the file. Instead I am forced to go to http://myapplication.test/public/test.php
Is there any way I can fix this?
It is causing me to do an ugly duplication work-around in my codebase. In the live project, going to www.liveurl.com/test.php works, so I am having to put a second public directory inside the actual public directory to reference the file as /public/test.php everywhere in the codebase. I'd really just like to use this in the same place locally and live. I hope that makes sense.
Any help or insight appreciated. Thanks!