Skip to content

Make the manager macroable #153

Open
@indykoning

Description

@indykoning

By implementing https://laravel.com/api/10.x/Illuminate/Support/Traits/Macroable.html to https://github.com/mailerlite/laravel-elasticsearch/blob/main/src/Manager.php
this will allow additional functions to be added to the Elasticsearch manager.

Making it so if extra customisation, or features need to be added inside of a specific project that it is not necessary to wrap this wrapper.

I think additionally running hasMacro, and if it resolves to true. Running the trait's __call should be enough.
https://github.com/laravel/framework/blob/20085feef61119b58fef540cba79595b4a85a89a/src/Illuminate/Macroable/Traits/Macroable.php#L109

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