Skip to content

Commit

Permalink
Merge pull request #23 from mahmoudmohamedramadan/development
Browse files Browse the repository at this point in the history
[1.x] Invoke the `resolveModel` method
  • Loading branch information
mahmoudmohamedramadan authored Dec 13, 2024
2 parents dfa6949 + 3d1f4cd commit 9b0c2d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ public function addOrWhereRelation(array $wheres, EloquentBuilder $query = null)
*/
protected function getSearchableEloquentBuilder()
{
$this->resolveModel();

$model = $this->getSearchableModel();
$relationship = $this->getRelationship();

Expand Down

0 comments on commit 9b0c2d8

Please sign in to comment.