Closed huytrvan closed 3 years ago
Not just Lumen but also the Laravel framework has the same error.
My composer.json
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.40",
"laravel/scout": "^9.1",
"laravel/tinker": "^2.5",
"teamtnt/laravel-scout-tntsearch-driver": "^11.4"
},
My system
PHP 7.4.15 (cli) (built: Feb 27 2021 14:49:50) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.15, Copyright (c), by Zend Technologies
Yes I'm getting same error too. Any fixes there?
with 11.3 version it works perfectly but with 11.4 recent update it's totally broken.
The cause of this issue is 6ca92025013449853ffd6a293a8314f5d3a94eee where an upgrade to laravel/scout
to v9 was allowed yet no changes were done to actually support v9 of Scout which would require implementing Laravel\Scout\Engines\Engine::lazyMap, Laravel\Scout\ Engines\Engine::createIndex, Laravel\Scout\Engines\Engine::deleteIndex
.
To fix this, you can run composer require laravel/scout:^8.0
to downgrade to v8 of Laravel Scout.
And of course, you can always create a pull request implementing the missing methods 😄
Hello,
I ran the follwing command in Laravel Lumen:
php artisan scout:import App\\Models\\Modem
And I got this error:
Note:
php artisan tntsearch:import App\\Models\\Modem
works just fine.I think the file:
teamtnt\laravel-scout-tntsearch-driver\src\Engines\TNTSearchEngine.php
is missing those 3 methods.I check this on my other Laravel Project and still same error.
Here is my composer.json:
Here is my System:
windows 7
Any ideas? Thank you.