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 6bde46c commit da44045Copy full SHA for da44045
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($this)->toArray())
+ ->through(optional($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(RestifyRequest $request): Collection
+ public static function collectMiddlewares(RestifyRequest $request): ?Collection
743
{
744
return collect(static::$middlewares);
745
0 commit comments