Recurring Issue with Missing api.php and Service Providers in Fresh Laravel Installations
Hello Laracasts Community,
I'm encountering a persistent issue with Laravel installations on my macOS environment and I'm seeking insights or advice from the community.
Issue Description:
In every new Laravel project I create, I'm noticing that the api.php file is missing from the routes directory. Moreover, the app/Providers directory is lacking several of the standard service providers, such as RouteServiceProvider, which are typically present in a fresh Laravel installation. This issue persists even after taking several troubleshooting steps.
Environment:
macOS
Composer version: 2.7.2
PHP version: 8.3.4
Steps Taken So Far:
I've tried creating multiple new projects using the command composer "create-project --prefer-dist laravel/laravel project-name".
I've cleared Composer's cache with composer clear-cache.
I've ensured my Composer and PHP are up-to-date.
Despite these efforts, the api.php file and several service providers are consistently missing in new installations.
Questions:
Has anyone else experienced this issue with Laravel installations on macOS?
Are there any known compatibility issues or bugs in Laravel latest version that might be causing this?
Could this be related to specific settings or configurations in my macOS environment?
Any recommendations for further troubleshooting steps would be greatly appreciated.
Thank you in advance for any insights or assistance you can provide. This issue has been quite perplexing, and I'm eager to resolve it and continue with my Laravel development.