Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit fd1c0ea

Browse files
committed
a fix
1 parent 01ce2bb commit fd1c0ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/QueryResetServiceProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ public function register()
2222
->each(function($method) {
2323
Builder::macro('reset'. ucfirst($method), QueryReset::$method());
2424
});
25-
25+
2626
//Eloquent builder
2727
Collection::make(EloquentReset::getMethods())
28-
->reject(function($method) {
29-
return EloquentBuilder::hasMacro('reset'. ucfirst($method));
30-
})
28+
//TODO: find a better way to check
29+
// ->reject(function($method) {
30+
// //return EloquentBuilder::hasMacro('reset'. ucfirst($method));
31+
// })
3132
->each(function($method) {
3233
EloquentBuilder::macro('reset'. ucfirst($method), EloquentReset::$method());
3334
});

0 commit comments

Comments
 (0)