From d590071e81ceba7654bfdeba6748f2918bf084ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 22 Nov 2023 12:42:20 +0000 Subject: [PATCH] Fix 3 problems --- src/Resources/Resource.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Resources/Resource.php b/src/Resources/Resource.php index f00da640..d0aa05c1 100644 --- a/src/Resources/Resource.php +++ b/src/Resources/Resource.php @@ -248,9 +248,9 @@ public function filters(Request $request): array { $fields = $this->resolveFields($request)->authorized($request); - $searchables = $fields->searchable($request); + $searchables = $fields->searchable(); - $sortables = $fields->sortable($request); + $sortables = $fields->sortable(); return array_values(array_filter([ $searchables->isNotEmpty() ? new Search($searchables) : null, @@ -442,7 +442,7 @@ public function toShow(Request $request, Model $model): array public function toEdit(Request $request, Model $model): array { return array_merge($this->toArray(), [ - 'title' => __('Edit :model', ['model' => sprintf('%s %s', $this->modelTitle($model))]), + 'title' => __('Edit :model', ['model' => $this->modelTitle($model)]), 'model' => $model, 'action' => $this->modelUrl($model), 'method' => 'PATCH',