title: Laravel 4.1 Vendor Directory Config
body: <p>I want to put my <strong>vendor</strong> directory in the <code>../vendor</code> folder instead of the <strong>vendor</strong> folder inside my main project's directory.
  This is possible and supported in composer, and so my <code>composer.json</code> is reflected:</p>
  
  <pre><code>"config": {
      "preferred-install": "dist",
      "vendor-dir": "vendor"
  },
  </code></pre>
  
  <p>and I also edited my <code>autoload.php</code> file</p>
  
  <pre><code>require __DIR__.'/../../vendor/autoload.php'
  </code></pre>
  
  <p>but every time I run composer install, I get:</p>
  
  <blockquote>
    <p>Script php artisan optimize handling the post-install-cmd event returned with an error.</p>
  </blockquote>
  
  <p>and I can't even do any php artisan commands - they all come up empty, not even an error message.
  When I had the vendor folder in the normal place with the normal config options, everything worked beautifully. So does L4.1 just not support changing the <strong>vendor</strong> directory?</p>