Skip to content

Commit

Permalink
Update Builder.php
Browse files Browse the repository at this point in the history
Get the model instance being queried.
  • Loading branch information
amirex128 committed Apr 25, 2020
1 parent 736415e commit bf8c578
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Jenssegers/Mongodb/Eloquent/Builder.php
Expand Up @@ -206,4 +206,14 @@ public function getConnection()
{
return $this->query->getConnection();
}

/**
* Get the model instance being queried.
*
* @return Jenssegers\Mongodb\Eloquent\Model|static
*/
public function getModel()
{
return $this->model;
}
}

0 comments on commit bf8c578

Please sign in to comment.