Skip to content

Commit

Permalink
hide events
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed May 29, 2024
1 parent 814f26a commit edca092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Fields/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class Events extends MorphMany
public function __construct(?string $label = null, Closure|string|null $modelAttribute = 'rootEvents', Closure|string|null $relation = null)
{
parent::__construct($label ?: __('Events'), $modelAttribute, $relation);

$this->hiddenOn(['index']);
}

/**
Expand Down

0 comments on commit edca092

Please sign in to comment.