Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple presenters #34

Open
madbonkey opened this issue Mar 20, 2015 · 1 comment
Open

Support for multiple presenters #34

madbonkey opened this issue Mar 20, 2015 · 1 comment

Comments

@madbonkey
Copy link

I could imagine the present() method of the PresentableTrait accepting a parameter specifying the Presenter I want to use. I might have different Presenters for each Model for Ajax, Forms, Backend, Frontend etc.

Thoughts?

@ghost
Copy link

ghost commented Mar 22, 2015

I believe that this component is meant as a working example (for the Laracasts video series) that you can use or adapt, but remains at its core very basic.

If it was me, I might do something like create a fork, and extend the PresentableTrait to optionally accept $presenter as an associative list with ['ajax' => 'MyAjaxPresenter', 'form' => 'MyFormPresenter'] or similar by making some minor alterations to the present() method.

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

No branches or pull requests

1 participant