title: How to fix MySql: index column size too large (Laravel migrate)
body: <p>I duplicated a project with a vagrant box which installs Debian, Nginx, PhpMyAdmin, .. With the new project the Laravel's <code>php artisan migrate</code> is not working anymore and I get the error:</p>
  
  <pre><code>[Illuminate\Database\QueryException]                                                                                                                                      
    SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes. (SQL: alter table `courses` add unique `courses_name_unique`(`na  
    me`))
  </code></pre>
  
  <p>When I make a dump (structure + data) of the working project database and import it in the database giving the errors on migrate, then everything is ok and it creates all the tables and data is imported.. </p>
  
  <p>How can I fix the size so that I can run the migrate method?</p>