Add the composer update command after adding the package to the composer...

....json