Set visibility of component based on current resource
I would like to put a list in a common area to share with the ArticleResource and ArticlesRelationManager (for users resource). Since this is to show articles for a specific user, I do not need the author column to be visible.
I have searched here and in the Docs and I have not found anything with the terminology I was trying to search for.
How can I set visibility based on the
I have searched here and in the Docs and I have not found anything with the terminology I was trying to search for.
How can I set visibility based on the
resource it is being used in similarly to how I have visibility based on $operation below?`
TextColumn::make('author.name')
->visible(fn (string $operation) => $operation !== 'edit')
->searchable()
->sortable(),