- Notifications
You must be signed in to change notification settings - Fork 340
Open
Description
hi guys,
once observed that the package doesn't support Laravel v11, I quickly tried to align that by forking the package and modifying it's dependencies like follows:
composer.json
"require": { ... "illuminate/database": "^8.0|^9.0|^10.0|^11.0", ... }, this made me possible to install my fork into my Laravel application.
{ "repositories": [ { "type": "vcs", "url": "https://github.com/jangaraev/laravel-mysql-spatial.git" } ] } { "require": { "grimzy/laravel-mysql-spatial": "@dev", } } next, I faced the fatal error during package auto-discover of composer update command:
Method Grimzy\LaravelMysqlSpatial\MysqlConnection::getDoctrineSchemaManager does not exist. the thing is L11 removed several DBAL methods: https://laravel.com/docs/11.x/upgrade#doctrine-dbal-removal
under the hood, the package tries to detect the DB platform here and register geo specific types:
| $dbPlatform = $this->getDoctrineSchemaManager()->getDatabasePlatform(); |
this method doesn't exist in L11. unfortunately, this was a breaking change for the package.
I'll try to look for a workaround.
please feel free to share your experience if you also tried to make it work in L11.
VerheeckeLorenzo and jpaulolxm
Metadata
Metadata
Assignees
Labels
No labels