title: Laravel 4.1 Run migrations and update configuration from package dependencies
body: <p>I'm developing a Laravel 4 package that uses <a href="https://cartalyst.com/manual/sentry/installation/laravel-4" rel="nofollow">Sentry 2</a>.
  In order for <a href="https://cartalyst.com/manual/sentry/installation/laravel-4" rel="nofollow">Sentry 2</a> to be installed I have to run migrations and publish their configurations:</p>
  
  <pre><code>php artisan migrate --package=cartalyst/sentry
  php artisan config:publish cartalyst/sentry
  </code></pre>
  
  <p>I would like to allow users of my package to simply run the migrations and publish configs for my own package without having to run that for Sentry 2, or any other package that I might require.</p>
  
  <p>Is there any way to do this? Should this be done at all, or should I keep asking my users to run the migrations/publish confs for every package?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT:</strong><br>
  As promissed, I've followed @AntonioCarlosRibeiro proposal and created a new Artisan command:</p>
  
  <pre><code>class SybilInstall extends Command
  {
      protected $name = 'sybil:install';
      protected $description = 'Install the sybil package';
      public function fire()
      {
          $this-&gt;call(
              'migrate',
              array('--package' =&gt; 'cartalyst/sentry')
          );
          $this-&gt;call(
              'migrate',
              array('--package' =&gt; 'ghunti/sybil')
          );
          $this-&gt;call(
              'asset:publish',
              array('ghunti/sybil')
          );
      }
  }
  </code></pre>
  
  <p>Now people onlye need to run <code>php artisan sybil:install</code> and it will take care of everything</p>