Laravel 5.4 failing on php artisan migrate after php artisan make:auth

Posted 2 years ago by rafaelmsantos

Hi, I decided to test the new Laravel 5.4. So I started with the basic commands:

$ laravel new blog

$ php artisan make:auth

$ php artisan migrate

The last command returns an error, I will write it here:

[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 `users` add unique `users_email_unique`(`email`))   
[PDOException]                                                                               
  SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key  
   length is 767 bytes  

The database configuration on .env file is correct, since booth migrations and users table are created.

Any idea why is this failing?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.