A
A
Agelios2019-01-15 20:04:52
Laravel
Agelios, 2019-01-15 20:04:52

Can I have a folder and route at the same time with the same name?

I'm interested in the question, if suddenly I have a folder in public with the name test and route, I will get 403. Is it possible to somehow switch to the root?
Route::get('test', function() {});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2019-01-15
@v_decadence

In standard .htaccess, this line can be commented out so that even existing paths (to the folder) are processed by Laravel.
https://github.com/laravel/laravel/blob/master/pub...
There should be something similar in the nginx config, but I don't remember how try_files works with directories there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question