When you using PHP version 7.1.32 within your Laravel project, then showing this type of error in your project. If you want to update the composer still not solve you problem then After that Follow this trick-
add this line in config object of composer.json file
“platform-check”: false
run php artisan config:cache
then run composer dump-autoload in terminal