Skip to content

Commit

Permalink
Add values()
Browse files Browse the repository at this point in the history
  • Loading branch information
eronisko committed Mar 14, 2024
1 parent 2e831a8 commit b82ada1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,12 @@ public function getAuthorsWithAuthoritiesAttribute()
return $authorities->concat($authors);
}


public function getUniqueAuthorsWithAuthorityNames()
{
return $this->authors_with_authorities->pluck('name')->filter();
return $this->authors_with_authorities
->pluck('name')
->filter()
->values();
}

public function getFirstAuthorAttribute($value)
Expand Down

0 comments on commit b82ada1

Please sign in to comment.