Skip to content

Added ability to call methods on entity via presenter#25

Open
MarkRedeman wants to merge 1 commit into
laracasts:masterfrom
MarkRedeman:master
Open

Added ability to call methods on entity via presenter#25
MarkRedeman wants to merge 1 commit into
laracasts:masterfrom
MarkRedeman:master

Conversation

@MarkRedeman
Copy link
Copy Markdown

Similar to #13, however it is using the __call method.
I also added a Presenter spec, though I'm not really happy with how it looks. I couldn't figure out how to mock magic methods with phpspec so I had to create an example entity class.

(The idea from this pr came from this topic on Laracasts.)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant