We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b796493 commit 359d84aCopy full SHA for 359d84a
src/AccessServiceProvider.php
@@ -52,10 +52,10 @@ public function boot()
52
protected function bootScoutBuilder(): void
53
{
54
if (class_exists(Builder::class)) {
55
- Builder::macro('controlled', function (Builder $builder) {
56
- $control = $builder->model->newControl();
+ Builder::macro('controlled', function () {
+ $control = $this->model->newControl();
57
58
- return $control->queried($builder, Auth::user());
+ return $control->scoutQueried($this, Auth::user());
59
});
60
}
61
0 commit comments