title: Setting a foreign key bigInteger to bigIncrements in Laravel 5.4
body: <p>So I'm trying to set a foreign key in my migrate file for laravel so the user table is simple but I'm trying to use bigIncrements instead of stand increments as such.</p>
  
  <pre><code> public function up()
  {
      Schema::create('users', function (Blueprint $table) {
          $table-&gt;engine = 'InnoDB';
          $table-&gt;bigIncrements('id')-&gt;unsigned();
          $table-&gt;string('user_id')-&gt;unique();
          $table-&gt;string('avatar');
          $table-&gt;string('name');
          $table-&gt;string('email')-&gt;unique();
          $table-&gt;string('password')-&gt;nullable();
          $table-&gt;rememberToken();
          $table-&gt;timestampsTz();
      });
  }
  </code></pre>
  
  <p>And when I do the other table I try to add foreign key to it I get a error saying the the foreign key is incorrectly formed. I'm confused as to how because I'm matching the column types. Here is the other table.</p>
  
  <pre><code>public function up()
  {
      Schema::create('social_logins', function (Blueprint $table) {
          $table-&gt;engine = 'InnoDB';
          $table-&gt;bigIncrements('id');
          $table-&gt;bigInteger('user_id')-&gt;unsigned();
          $table-&gt;foreign('user_id')-&gt;references('id')-&gt;on('users')-&gt;onDelete('cascade')-&gt;unsigned()-&gt;index();
          $table-&gt;string('provider', 32);
          $table-&gt;string('provider_id');
          $table-&gt;string('token')-&gt;nullable();
          $table-&gt;string('avatar')-&gt;nullable();
          $table-&gt;timestamps();
      });
  }
  </code></pre>