Skip to content

Add on demand auto include #33

@yanis-git

Description

@yanis-git

Assuming you want to unsure some relationship are always include in particular cases, independently than what the consumer ask on include get parameter

i would like to have something like this

    public function store(ImportRequest $request): ClientResource
    {

                  return ClientResource::make($client)->withRelationships([
                          // some.nested.relation
                   ]);
    }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions