title: General error: 1 near ")": syntax error") in Laravel 5.6.33
body: <p>I have some problem with Laravel Migrations .
  I have a many to many relationship between my articles and tags .
  'article_tag' Migration : </p>
  
  <pre><code>Schema::create('article_tag', function (Blueprint $table) {
      $table-&gt;integer('article_id')-&gt;unsigned()-&gt;index();
      $table-&gt;foreign('article_id')-&gt;refrences('id')-&gt;on('tags')-&gt;onDelete('cascade')-&gt;onUpdate('cascade');
      $table-&gt;integer('tag_id')-&gt;unsigned()-&gt;index();
      $table-&gt;foreign('tag_id')-&gt;refrences('id')-&gt;on('articles')-&gt;onDelete('cascade')-&gt;onUpdate('cascade');
  });
  </code></pre>
  
  <p>'tags' Migration : </p>
  
  <pre><code>Schema::create('tags', function (Blueprint $table) {
      $table-&gt;increments('id');
      $table-&gt;string('name');
      $table-&gt;timestamps();
  });
  </code></pre>
  
  <p>'article Migration : </p>
  
  <pre><code>Schema::create('articles', function (Blueprint $table) {
      $table-&gt;increments('id');
      $table-&gt;string('title');
      $table-&gt;text('body');
      $table-&gt;timestamps();
  });
  </code></pre>
  
  <p>My Console Log : </p>
  
  <blockquote>
    <p>Illuminate\Database\QueryException  : SQLSTATE[HY000]: General error:
    1 near ")": syntax error (SQL: create table "article_tag"
    ("article_id" integer not null, "tag_id" integer not null, foreign
    key("article_id") references "tags"() on delete cascade on update
    cascade, foreign key("tag_id") references "articles"() on delete
    cascade on update cascade)</p>
  </blockquote>
  
  <p>Exception trace:</p>
  
  <blockquote>
    <p>1   PDOException::("SQLSTATE[HY000]: General error: 1 near ")":
    syntax error")
          /home/user/Desktop/blog/vendor/laravel/framework/src/Illuminate/Database/Connection.php:452</p>
    
    <p>2   PDO::prepare("create table "article_tag" ("article_id" integer
    not null, "tag_id" integer not null, foreign key("article_id")
    references "tags"() on delete cascade on update cascade, foreign
    key("tag_id") references "articles"() on delete cascade on update
    cascade)")
          /home/user/Desktop/blog/vendor/laravel/framework/src/Illuminate/Database/Connection.php:452</p>
  </blockquote>
  
  <p>Best , Javad</p>