I'm using Laravel/popular and when I add 3 classes and migrate it gives me error. Here that 3 classes are listed:
JordanMiguel\LaravelPopular\LaravelPopularServiceProvider::class,
Illuminate\Foundation\Providers\ArtisanServiceProvider::class,
Illuminate\Auth\AuthServiceProvider:class,
In Connection.php line 664:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table
visits
add uniquevisits_ip_visitable_id_visitable_type_date_unique
(ip
,visitable_id
,visitable_type
,date
))
In Connection.php line 458:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes