title: Laravel: Composer update when dependency is not yet installed
body: <p>I require a dependency on my local environment. I add it's service provider and all is fine. The composer.json has this script</p>
  
  <pre><code>"pre-update-cmd": [
              "php artisan clear-compiled"
          ],
  </code></pre>
  
  <p>When I push the changes to production, I try to run composer update but because of that script artisan fails with an error since the dependency is not yet installed and therefore the service provider I added in config/app.php is not there yet.</p>
  
  <p>What is the best approach to situations like this? Just remove the pre-update script?</p>