Laravel 相关问题

第三方包 laravel-ide-helper 执行 ide-helper:modles 报错

1
2
3
4
5
6
Exception: Unknown database type geometry requested, Doctrine\DBAL\Platforms\MySQL57Platform may not support it.
# 原因: 迁移文件包含 geometry 字段类型
# 解决:
vendor/barryvdh/laravel-ide-helper/src/Console/ModelsCommand.php - line 155
$schema = \Illuminate\Support\Facades\Schema::getConnection()->getDoctrineSchemaManager();
$schema->getDatabasePlatform()->registerDoctrineTypeMapping('geometry', 'string');
0%