I am using an existing project from GitHub, and I am trying to run Laravel very 1st time, but I am facing
In Connection.php line 664:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (S
QL: alter table `users` add unique `users_email_unique`(`email`))
In Connection.php line 458:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
later I took some instructions and added use Illuminate\Support\Facades\Schema;
under the AppServiceProvider.php
but after adding I am getting a different error like
C:\wamp64\www\localseo>php artisan migrate
In Facade.php line 221:
Call to undefined method Illuminate\Database\Schema\MySqlBuilder::defaultStringLenght()
Please help me how to avoid the error.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire