Skip to content

Commit

Permalink
fix in global search
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Aug 2, 2024
1 parent ddb603a commit 50aa963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/CanGloballySearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public function getGloballySearchableAttributes(): array

public function getGlobalAttributes(string $class): array
{
return array_merge(
return optional(array_merge(
(new static())::get()->defaultGloballySearchableAttributes,
$this->globallySearchableAttributes
)[$class];
))[$class] ?? [$class];
}
}

0 comments on commit 50aa963

Please sign in to comment.