Replies: 1 comment
-
Is your Laravel root path within a subdirectory in your domain? Something like this: https://example.com/my-app/ If so, subdirectory installs are not supported: https://laravel.com/docs/8.x/installation#directory-configuration There are several closed issues regarding this, I remember on reading people complaining route caching didn't work with that setup and core team members noting installing a Laravel app to be served from a subdirectory not being supported. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Browsing to '/' produces error:
Steps To Reproduce:
Put below code into routes/web.php. May be any other controller, etc. Execute php artisan route:cache. Without caching it works fine.
There seems to be a problem with requestWithoutTrailingSlash in Illuminate/Routing/CompiledRouteCollection.
It's described here https://laracasts.com/discuss/channels/code-review/laravel-7-breaks-my-index-route-whenever-the-routes-are-cached
Removing rtrim function helps as described in link above.
Beta Was this translation helpful? Give feedback.
All reactions