You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public function filterImages($query, $method, $clauseOperator, $value, $in)
{
if ($in) {
call_user_func([$query, $method], 'product.categories', $value);
} else {
call_user_func([$query, $method], 'product.categories', $clauseOperator, $value);
}
}
when i filter for key "images" and value "image.jpg" this error always comes back:
"Argument 1 passed to Infrastructure\Database\Eloquent\Repository::filterImages() must be an instance of Optimus\Bruno\EloquentBuilderTrait, instance of Illuminate\Database\Eloquent\Builder given",
The text was updated successfully, but these errors were encountered:
You have to import a proper Builder class by adding the following line near other "use" statements in your file: use Illuminate\Database\Eloquent\Builder;
in ItemRepository I have a method:
when i filter for key "images" and value "image.jpg" this error always comes back:
"Argument 1 passed to Infrastructure\Database\Eloquent\Repository::filterImages() must be an instance of Optimus\Bruno\EloquentBuilderTrait, instance of Illuminate\Database\Eloquent\Builder given",
The text was updated successfully, but these errors were encountered: