Skip to content
Discussion options

You must be logged in to vote

Yes this is the intended behavior at the moment. However, you can prevent it by using the following:

// before
HasMany::make('Logs'),

// after
$this->mergeWhen(
  $request->isPresentationRequest() && ! $request->viaRelationship(), 
  fn () => [
    HasMany::make('Logs'),
  ]
),

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcoraddatz
Comment options

Answer selected by marcoraddatz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants