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
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:
When using
<x-foo.bar />
, Laravel processes the file firstfoo/bar.blade.php
therefore, this implementation also prioritizes these files and<x-foo.bar />
in this case will refer tofoo/bar.blade.php
Without file
foo/bar.blade.php
:<x-foo.bar />
will refer tofoo/bar/index.blade.php