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

Eager Loading Problem #238

Closed hakhsin closed 3 months ago

hakhsin commented 5 years ago

Hi, when I define $with property for Eager Loading, I get this error on artisan scout:import.

ErrorException : mb_strtolower() expects parameter 1 to be string, array given

What should I do? My $with property:

    /**
     * The relationships that should always be loaded.
     *
     * @var array
     */
    protected $with = [
        'creator', 'channel'
    ];

with-error

without-error