Why is there a folder there in the first place? Just use laravel to redirect. This allows you to test it as well https://laravel.com/docs/9.x/routing#redirect-routes
Oct 12, 2022
8
Level 16
Testing a URL that does not exist in routes
Hi, I have a folder called docs in my public folder. I am trying to write a test to check if the status is 200 and if it is correctly being redirected to the correct version, but as I understand, the $this->get('/docs') does not work because it is looking for a route inside the app, so is there any way that I can make this work?
Level 102
@mozex Then it sounds more like an e2e test as you need to actually call that url. So either cypress or laravel Dusk
Please or to participate in this conversation.