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

[10.x] allow resolving view from closure #48719

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

PH7-Jack
Copy link
Contributor

@PH7-Jack PH7-Jack commented Oct 12, 2023

Hi, this PR purpose is to add support to blade view when using closure to access the component $data and attributes.
It's really useful for building components

Before
image

After
image

Passing the view instance directly will prevent double-view rendering issues.

Thanks

PS: I've added a test to cover the current feature using string, however, I was not able to add a unit test for the view instance.

@PH7-Jack PH7-Jack changed the title allow resolving view from closure [10.x] allow resolving view from closure Oct 12, 2023
@taylorotwell taylorotwell merged commit 7817052 into laravel:10.x Oct 13, 2023
20 checks passed
@PH7-Jack
Copy link
Contributor Author

@taylorotwell is it possible to have the feature in the laravel 9 too?

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