Skip to content

Cannot use underscore for attributes #31

Open
@ziming

Description

@ziming

Hi,

I'm trying to do something like

$post->present()->created_at

I have a created_at function in my presenter class. But somehow it doesn't work. It works if I named my created_at as createdAt though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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