diff --git a/src/Searchable.php b/src/Searchable.php index ccffff5..7c61310 100644 --- a/src/Searchable.php +++ b/src/Searchable.php @@ -229,6 +229,8 @@ public function addOrWhereRelation(array $wheres, EloquentBuilder $query = null) */ protected function getSearchableEloquentBuilder() { + $this->resolveModel(); + $model = $this->getSearchableModel(); $relationship = $this->getRelationship();