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 e923b56 commit 6bde46cCopy full SHA for 6bde46c
src/Http/Requests/InteractWithRepositories.php
@@ -53,7 +53,7 @@ public function repository($key = null): ?Repository
53
54
app(Pipeline::class)
55
->send($this)
56
- ->through($repository::collectMiddlewares()->toArray())
+ ->through($repository::collectMiddlewares($this)->toArray())
57
->thenReturn();
58
});
59
src/Repositories/Repository.php
@@ -739,7 +739,7 @@ public function availableFilters(RestifyRequest $request)
739
->values();
740
}
741
742
- public static function collectMiddlewares(): Collection
+ public static function collectMiddlewares(RestifyRequest $request): Collection
743
{
744
return collect(static::$middlewares);
745
0 commit comments