Refactor laravel architecture.

Move App folder to infrastructure folder.

1. moved laravel app folder content to /src/Common/Infrastructure/Laravel

2. moved Console/Kernel.php to /src/Common/Infrastructure/Laravel/Kernel/Console.php

3. moved Http/Kernel.php to /src/Common/Infrastructure/Laravel/Kernel/Http.php

4. moved Http/Controllers/Controller.php to /src/Common/Infrastructure/Laravel/Controller.php

5. fix file paths in boorstrap/app.php

6. fix file paths for application service providers in config/app.php

7. fix file paths for middleware in config/sanctum.php

8. change app to src in composer.json
This commit is contained in:
omair saleh
2022-09-24 20:53:31 +08:00
parent 5e603de56f
commit b6c87fd42b
23 changed files with 90 additions and 43 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Src\\": "src/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}