You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my projects, I every change the default namespace of api.php to namespace App\Http\Controllers;.
This make more simple the api.php file to standard Laravel usage. Because, with api.php in the same namespace of Controllers, we don't need 'import' all Controllers with use on top of file, making more simplified this file.
My suggestion is do it as default in the framework to simplify to all.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In my projects, I every change the default namespace of
api.php
tonamespace App\Http\Controllers;
.This make more simple the
api.php
file to standard Laravel usage. Because, withapi.php
in the samenamespace
ofControllers
, we don't need 'import' all Controllers withuse
on top of file, making more simplified this file.My suggestion is do it as default in the framework to simplify to all.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions