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

Added support for anonymous index components. #5

Merged
merged 1 commit into from
Oct 28, 2021
Merged

Added support for anonymous index components. #5

merged 1 commit into from
Oct 28, 2021

Conversation

igorgaming
Copy link
Contributor

This PR adds support for anonymous index components that were released in Laravel v8.62.

This has also been tested with a similar structure such as:

components/
  foo/
    bar/
      index.blade.php
      foobar.index.php
    bar.blade.php

When using <x-foo.bar />, Laravel processes the file first foo/bar.blade.php therefore, this implementation also prioritizes these files and <x-foo.bar /> in this case will refer to foo/bar.blade.php

Without file foo/bar.blade.php: <x-foo.bar /> will refer to foo/bar/index.blade.php

@Naoray Naoray merged commit bf3fdd4 into Naoray:main Oct 28, 2021
@Naoray
Copy link
Owner

Naoray commented Oct 28, 2021

@igorgaming thank you very much!

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