title: Laravel won't let me migrate a table because it already exists
body: <p>I am trying to use Laravel Migration to create SQL tables but it won't let me.</p>
  
  <p>Here is the error:</p>
  
  <blockquote>
    <p>SQLSTATE[42S01]: Base table or view already exists: 1050 Table
    'mytable' already exists</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>        Schema::create('mytable', function (Blueprint $table) {
              $table-&gt;increments('id');
              $table-&gt;foreign('othertable_id')
                  -&gt;references('id')-&gt;on('othertable')
                  -&gt;onDelete('cascade');
              $table-&gt;string('variable');
              $table-&gt;timestamps();
      });
  
      }
  
      {
          Schema::drop('mytable');
      }
  </code></pre>
  
  <p>I have also checked if other migrations are called "mytable" but they are not, so I am not sure where this come from.</p>
  
  <p>I tried the following:</p>
  
  <p>First </p>
  
  <pre><code>php artisan migrate:refresh
  </code></pre>
  
  <p>Which gave me an error</p>
  
  <p>And then I deleted the entire database altogheter and used:</p>
  
  <pre><code>php artisan migrate
  </code></pre>
  
  <p>And still got the error</p>