Skip to content

Commit

Permalink
Merge pull request #178 from conedevelopment/fixa
Browse files Browse the repository at this point in the history
Fix 3 problems
  • Loading branch information
iamgergo authored Nov 22, 2023
2 parents 2740f30 + d590071 commit d3be9be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit d3be9be

Please sign in to comment.