Skip to content

Refactor Author configuration #446

Closed
@caendesilva

Description

A nice way to define authors would be with a helper facade in the config. Here's an example idea:

'authors' => [
    new Author([
        'username' => 'mr_hyde',
        'name' => 'Mr Hyde',
        'website' => 'hydephp.com',
    ]),
    
    new Author([
        'username' => 'ms_hyde',
        'name' => 'Miss Hyde',
    ]),
];

This has the added benefit of ensuring all Authors have a username as the schema will be right in the config which I really like.

Originally posted by @caendesilva in #442 (comment)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions