teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.1k stars 144 forks source link

In TNTSearchScoutServiceProvider.php line 22: Unsupported operand types #138

Closed digitlimit closed 6 years ago

digitlimit commented 6 years ago

I got error message below when I run `php artisan scout:import "App\Model"

In TNTSearchScoutServiceProvider.php line 22: Unsupported operand types

And here is line 22 $config = config('scout.tntsearch') + config("database.connections.{$driver}");

Why are you guys using +?

digitlimit commented 6 years ago

Ok I forgot to add, also + operand is for array_merge

Please close

'tntsearch' => [
    'storage'  => storage_path(), //place where the index files will be stored
    'fuzziness' => env('TNTSEARCH_FUZZINESS', false),
    'fuzzy' => [
        'prefix_length' => 2,
        'max_expansions' => 50,
        'distance' => 2
    ],
    'asYouType' => false,
    'searchBoolean' => env('TNTSEARCH_BOOLEAN', false),
],
NazarAli commented 6 years ago

i have same problem

Hoglan commented 6 years ago

Appreciate this is from a while back, I had this problem for a short while today

php artisan config:cache

Sorted it for me.

mnoquiao commented 4 years ago

hi I am having the same issue right now can anyone tell me how did you fixed it?

bill-dou commented 3 years ago

Please run:

php artisan optimize:clear