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

View composers & shared view data #22

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

patinthehat
Copy link
Contributor

This PR adds two features related to view data: view composers and sharing data globally with all views. It adds two methods, hasViewComposer() and sharesDataWithAllViews().

I feel that these additions will help keep Laravel package setup code clean and easy to maintain, with no real downside to having these additional methods available even if they're not used for every package.

This PR also includes relevant unit tests and updated documentation.

@freekmurze freekmurze merged commit a1bd7c8 into spatie:master Mar 12, 2021
@freekmurze
Copy link
Member

Thanks!

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.

2 participants