title: How to properly duplicate a working Laravel 4 project
body: <p>I have the latest Laravel 4 beta 5 build from Laravel's <a href="https://github.com/laravel/laravel/tree/develop" rel="nofollow">github repo</a>.</p>
  
  <p>I have built a simple web API and it is working fine. I wanted to duplicate the project to another folder and continue working on it from the copy. However, when I try that, I get the following error message:</p>
  
  <pre><code>InvalidArgumentException
  Driver [native] not supported.
  
  /Users/tolga/Sites/l4api-copy/bootstrap/compiled.php
      Line 10908: throw new \InvalidArgumentException("Driver [{$driver}] not supported.");
  </code></pre>
  
  <p>Here is what I did in order to copy the project:</p>
  
  <pre><code>[/Users/tolga/Sites] $ cp -R l4api l4api-copy
  [/Users/tolga/Sites] $ chmod -R 755 l4api-copy
  </code></pre>
  
  <p>It didn't work, so I've tried:</p>
  
  <pre><code>[/Users/tolga/Sites] $ chmod -R 777 l4api-copy/app/storage
  </code></pre>
  
  <p>Still no good, tried to run composer dump-autoload:</p>
  
  <pre><code>[/Users/tolga/Sites] $ cd l4api-copy
  [/Users/tolga/Sites/l4api-copy] $ composer.phar dump-autoload
   Generating autoload files
  
  [/Users/tolga/Sites/l4api-copy] $
  </code></pre>
  
  <p>Same error. I have also tried to remove the <code>app/storage</code> folder and re-create it.</p>
  
  <pre><code>[/Users/tolga/Sites/l4api-copy] $ rm -Rf app/storage
  [/Users/tolga/Sites/l4api-copy] $ mkdir app/storage
  [/Users/tolga/Sites/l4api-copy] $ chmod -R 777 app/storage/
  </code></pre>
  
  <p>Here is a brand-new error:</p>
  
  <pre><code>ErrorException
  
  Warning: file_put_contents(/Users/tolga/Sites/l4api-copy/bootstrap/../app/storage/meta/services.json):
  failed to open stream: No such file or directory in
      /Users/tolga/Sites/l4api-copy/bootstrap/compiled.php line 5507
  
          Line 5507: return file_put_contents($path, $contents);
  </code></pre>
  
  <p>I have also run <code>composer.phar dump-autoload</code> command again, after emptying the <code>app/storage</code> folder.</p>
  
  <p>And finally, I have also tried <code>composer.phar install</code>:</p>
  
  <pre><code>[/Users/tolga/Sites/l4api-copy] $ composer.phar install
   Loading composer repositories with package information
   Installing dependencies from lock file
   Nothing to install or update
   Generating autoload files
  
  [/Users/tolga/Sites/l4api-copy] $
  </code></pre>
  
  <p>None of the above helped. What am I doing wrong? What is the proper way to duplicate a working project?</p>