title: Laravel drop foreign Key in Migration
body: <p>I want to create a Migration which shall drop a table. I created the Migration like this:</p>
  
  <pre><code>Schema::table('devices', function (Blueprint $table) {
      $table-&gt;increments('id');
      $table-&gt;unsignedInteger('client_id')-&gt;nullable();
      $table-&gt;foreign('client_id')-&gt;references('id')-&gt;on('clients')-&gt;onDelete('cascade');
  });
  </code></pre>
  
  <p>And now I try to drop it like this:</p>
  
  <pre><code>    Schema::table('devices', function (Blueprint $table) {
          $table-&gt;dropForeign('devices_client_id_foreign');
          $table-&gt;drop('devices');
      });
  </code></pre>
  
  <p>But I get following error:</p>
  
  <blockquote>
  <pre><code>In Connection.php line 664:
  
    SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'devices_client_id_foreign'; check that column/key exists (SQL:
  </code></pre>
    
    <p>alter table <code>devices</code> drop foreign key <code>devices_client_id_foreign</code>)</p>
  
  <pre><code>In PDOStatement.php line 144:
  
    SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'devices_client_id_foreign'; check that column/key exists
  
  
  In PDOStatement.php line 142:
  
    SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'devices_client_id_foreign'; check that column/key exists
  </code></pre>
  </blockquote>