Skip to content

Register anonymous components from a package #32154

Closed
@devfaysal

Description

@devfaysal
  • Laravel Version: 7.3.0

Description:

If I have a package that has some anonymous components, the only way I can make them available is to create a class for them and register them individually. There is no way to register anonymous components without writing a class for it.

For reference,
spatie/laravel-blade-x had BladeX::component('components.myAlert'); to register a component which is just a blade file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions