Skip to content

Support for anonymous component paths.  #68

@Waghabond

Description

@Waghabond

The extension should look in service providers' boot() methods for Blade::anonymousComponentPath() calls and highlight component tags accordingly

// app/Providers/AppServiceProvider.php
public function boot()
{
    Blade::anonymousComponentPath(resource_path('views/layouts'), 'layouts');
}
{{-- resources/views/layouts/app.blade.php --}}
<html>
    <head></head>
    <body>{{ $slot }}</body>
</html>

The following should now be clickable:

{{-- resources/views/home.blade.php --}}
<x-layouts::app>
    {{-- content --}}
</x-layouts::app>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions