Open Sunhat opened 3 years ago
To get around this issue, I've had to create a new Model
namespace App\Models\Algolia;
use App\Models\Yacht;
use Laravel\Scout\Searchable;
class Yacht extends ModelsYacht
{
use Searchable;
}
Hi @Sunhat , thank you for submitting this issue.
It seems like something might be wrong in the parent class of the resource, because AFAIK the scoutQuery
method should return a \Laravel\Scout\Builder
, and not a \Algolia\ScoutExtended\Builder
. Could you show me the code in the parent's scoutQuery
method so we can see if there's an issue in there?
Thank you in advance!
I'm using Laravel 5.7 with "algolia/scout-extended": "1.8",
In conjunction with Laravel Nova
e.g. in a Nova Resource:
Prior to installing Algolia and making this model Searchable, this was working
$builder
is\Algolia\ScoutExtended\Builder