Skip to content

Commit 76b5ec8

Browse files
committed
Add pre-process-index hook, fixes #34
1 parent 7df7dcd commit 76b5ec8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ServiceProvider.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ protected function bootExtensions()
7676

7777
protected function bootHooks()
7878
{
79-
Bard::hook('augment', function ($value, $next) {
79+
$callback = function ($value, $next) {
8080
return $next(MutatorFacade::injectRoot($value));
81-
});
81+
};
82+
83+
Bard::hook('augment', $callback);
84+
Bard::hook('pre-process-index', $callback);
8285

8386
return $this;
8487
}

0 commit comments

Comments
 (0)