You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
I could imagine the
present()
method of thePresentableTrait
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?
The text was updated successfully, but these errors were encountered: