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

Provide an example of @mixin #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

judgej
Copy link

@judgej judgej commented Mar 28, 2023

Just discovered these, and they make working on a presenter very much easier, as it sees $this as your model, just as happens at run-time.

A single presenter could conceivably be used by multiple models, but I think this will be rare, since each model will likely be different, and each can have onle one presenter.

Just discovered these, and they make working on a presenter very much easier, as it sees `$this` as your model, just as happens at run-time.

A single presenter could conceivably be used by multiple models, but I think this will be rare, since each model will likely be different, and each can have onle one presenter.
@judgej
Copy link
Author

judgej commented Mar 28, 2023

The @mixin example uses \User rather than \App\User to be consistent with the example model in the readme.

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