title: SQLSTATE[42000]: Syntax error or access violation: 1064 default character set utf8 collate utf8_unicode_ci' at line 1
body: <p>I'm trying to migrate this code into mysql database but keep getting this error message.</p>
  
  <blockquote>
    <p>SQLSTATE[42000]: Syntax error or access violation: 1064 You have an
    error in your SQL syntax; check the manual that corresponds to your
    MySQL server version for the right syntax to use near ') default
    character set utf8 collate utf8_unicode_ci' at line 1</p>
  </blockquote>
  
  <pre><code>public function up()
      {
          Schema::create('user', function(Blueprint $table)
          {
              $table-&gt;engine = 'InnoDB';
              $table-&gt;increments('id');
              $table-&gt;string('name');
              $table-&gt;string('email')-&gt;unique();
              $table-&gt;string('password', 60);
              $table-&gt;rememberToken();
              $table-&gt;timestamps();
              $table-&gt;integer('projectId')-&gt;unsigned();
              $table-&gt;boolean('isStudent');
              $table-&gt;boolean('isCompany');
              $table-&gt;String('img');
          });
  
          Schema::create('user', function($table)
          {
              $table-&gt;foreign('projectId')-&gt;references('id')-&gt;on('project');
  
          });
  
  
      }
  
      /**
       * Reverse the migrations.
       *
       * @return void
       */
      public function down()
      {
          Schema::drop('user');
      }
  }
  </code></pre>