I started a PHP project with the lumen framework.
When I try to execute the command php artisan migrate:fresh
from the console I get the following error
SQLSTATE[42000]: Syntax error or access violation: 1071
It is a well known error in Laravel but this question is not a duplicate because there is no boot method on lumen, as the documentation says :
Laravel uses the utf8mb4 character set by default, which includes support for storing "emojis" in the database. If you are running a version of MySQL older than the 5.7.7 release or MariaDB older than the 10.2.2 release, you may need to manually configure the default string length generated by migrations in order for MySQL to create indexes for them. You may configure this by calling the Schema::defaultStringLength method within your AppServiceProvider.
However, when I try to use this fix in the microframework Lumen the error is still there.