Im new to Laravel, trying to use Laravel mediable package but it gives me an error on migration -> "[Illuminate\Database\QueryException]
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table media
add unique media_disk_directory_filen
ame_extension_unique
(disk
, directory
, filename
, extension
))
[PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes"
Im on Laravel 5.4.36, the solution on other sites is to add this ->
public function boot()
{
//
Schema::defaultStringLength(191);
}
but i already have this in my project.
can anybody please help?