Skip to content

StoreContract in showRelated method of controller #210

Open
@ale1981

Description

@ale1981

Is there an easier way of me accessing the Store from within my custom readingRelatedx method without overriding the showRelated method in the controller and passing it in like this;

I need to override the data that is returned.

        if (method_exists($this, $hook = 'readingRelated' . Str::classify($fieldName))) {
            $response = $this->{$hook}($model, $request, $store);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions