1) Remove tests, documentation, .gitignore files from the vendor dir. 2) Minify all php files in the vendor dir
Require this package:
composer require goszowski/laravel-vendor-minify
You can now remove all the docs/tests/examples/build scripts throught artisan
php artisan vendor:cleanup
And You can now minify all php files throught artisan
php artisan vendor:minify
Thanks Barry vd. Heuvel and other Contributors for beautiful package to cleanup Laravel 4.2
The Laravel Vendor Minify Command is open-sourced software licensed under the MIT license