title: laravel migration Specified key was too long; max key length is 767 bytes
body: <p>I'm trying for migrate a laravel migration but i had an error :</p>
  
  <pre><code>Migrating: 2014_10_12_100000_create_password_resets_table
  
     Illuminate\Database\QueryException  : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `password_
  resets` add index `password_resets_email_index`(`email`))
  </code></pre>
  
  <p>my code is :</p>
  
  <pre><code>if (!Schema::hasTable('password_resets')) {
              Schema::create('password_resets', function (Blueprint $table) {
                  $table-&gt;string('email')-&gt;index();
                  $table-&gt;string('token');
                  $table-&gt;timestamp('created_at')-&gt;nullable();
              });
          }
  </code></pre>