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

[9.x] Fix components view error when using $attributes in parent view #44778

Merged
merged 2 commits into from
Oct 31, 2022

Conversation

sebastienheyd
Copy link
Contributor

This will fix #44763

In addition of checking if $attributes is set, this will check if $attributes is an instance of Illuminate\View\ComponentAttributeBag.

This allows you to set $atttributes in the parent view without interfering with the component.

@taylorotwell taylorotwell merged commit 7f5d349 into laravel:9.x Oct 31, 2022
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.

[9.x] View error when using "attributes" as data name and using components
2 participants