Rename App\Http to App\Web #45246
Unanswered
klaasgeldof
asked this question in
Ideas
Replies: 0 comments
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.
-
This is just a personal thought that crosses my mind now and then while working in Laravel.
I always found the 'App\Http' namespace a little bit strange. Not only because of 'http' with a capital letter (which I find looking odd but that's personal maybe), but also because of the discrepancy between the routes files and the namespaces:
routes/console.php
<-->App\Console
😍routes/web.php
<-->App\Http
🤔When I started using Laravel, I asked myself: why isn't the routes file called
routes/http.php
?Or why isn't the namespace called
App\Web
?Especially now that there exists a
Http
facade for making requests, I think it can be even more confusing for newcomers.This would change nothing for existing projects, but it could be a nice change for new projects installed from
laravel/laravel
for version 10...Beta Was this translation helpful? Give feedback.
All reactions