I'm new to Laravel. When I finally deploy my new web application to the host/live server, I realized that nearly 5,000 files were transferred to it.
I don't transfer node_modules dependencies, so it's not those file. Because I use webpack (Laravel Mix), I don't need the node_modules dependencies on the server, and it works just fine.
Here's the larger suspects. Do I need them on my host/live server at all? If so, why when the main part of my Laravel web application is just a few pages.
vendor/symfony = 1500 files
vendor/laravel = 900 files
vendor/mongodb = 500 files
vendor/nikic (php-parser) = 500 files
vendor/swiftmailer = 300 files
vendor/psy = 250 files
I realize I can call composer install once the application is deployed. But installing composer itself on a production server seems odd to me. In that case, I'd rather just transfer the files during deployment.
Mostly, I wonder why I need these at all. Are they just the overhead that ALL Laravel web applications require?