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.
2 parents 637b873 + 05ec1de commit 260fc53Copy full SHA for 260fc53
packages/framework/src/Framework/Features/Blogging/Models/PostAuthor.php
@@ -71,7 +71,9 @@ public static function get(string $username): static
71
/** @return \Illuminate\Support\Collection<\Hyde\Framework\Features\Blogging\Models\PostAuthor> */
72
public static function all(): Collection
73
{
74
- return new Collection(Config::getArray('hyde.authors', []));
+ return (new Collection(Config::getArray('hyde.authors', [])))->mapWithKeys(function (self $author): array {
75
+ return [$author->username => $author];
76
+ });
77
}
78
79
public function __toString(): string
0 commit comments