Sometimes when I run composer update to upgrade the laravel project, a content-length mismatch exception might occur. Finally, I get this is because of the terrible firewall
composer config -g repos.packagist composer https://packagist.jp