Skip to content

Commit

Permalink
Add missing methods to passthru
Browse files Browse the repository at this point in the history
Fixes #1765
  • Loading branch information
divine committed Apr 29, 2021
1 parent 09fcda8 commit f1f8e05
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed
- Sync passthru methods [#2194](https://github.com/jenssegers/laravel-mongodb/pull/2194) by [@simonschaufi](https://github.com/simonschaufi)

## [3.8.3] - 2021-02-21

### Changed
Expand Down
26 changes: 18 additions & 8 deletions src/Jenssegers/Mongodb/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,28 @@ class Builder extends EloquentBuilder
* @var array
*/
protected $passthru = [
'toSql',
'average',
'avg',
'count',
'dd',
'doesntExist',
'dump',
'exists',
'getBindings',
'getConnection',
'getGrammar',
'insert',
'insertGetId',
'pluck',
'count',
'min',
'insertOrIgnore',
'insertUsing',
'max',
'avg',
'sum',
'exists',
'push',
'min',
'pluck',
'pull',
'push',
'raw',
'sum',
'toSql'
];

/**
Expand Down

0 comments on commit f1f8e05

Please sign in to comment.