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

[8.x] Allow components to use custom attribute bag #36186

Merged
merged 2 commits into from
Feb 8, 2021
Merged

[8.x] Allow components to use custom attribute bag #36186

merged 2 commits into from
Feb 8, 2021

Conversation

rodrigopedra
Copy link
Contributor

This PR allows a developer to provide a custom ComponentAttributeBag instance for their view's components.

I really liked the idea on PR #36148 , but I totally get that merging it would expand the maintenance work for a feature not all users would use.

By allowing the developer to override the ComponentAttributeBag instantiation, a third-party package could provide the features from PR #36148 .

Also it is similar to how an Eloquent Model allows a custom Collection or Query Builder instantiation.

@taylorotwell taylorotwell merged commit 2f96f84 into laravel:8.x Feb 8, 2021
@rodrigopedra rodrigopedra deleted the attribute-bag branch February 8, 2021 20:45
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.

None yet

2 participants