我正在使用GitHub上的现有项目,并且试图第一次运行Laravel,但我面临着
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
后来我接受了一些说明并添加了
use Illuminate\Support\Facades\Schema;
下的AppServiceProvider.php
,但添加后出现类似
C:\wamp64\www\localseo>php artisan migrate
In Facade.php line 221:
Call to undefined method Illuminate\Database\Schema\MySqlBuilder::defaultStringLenght()
请帮助我避免该错误。