Skip to content
Discussion options

You must be logged in to vote

In 4.22.0 you can do the following:

Panel::make('Twost', [
    $this->mergeWhen(somethingIsEnabled(), [
        Text::make('Whatever'),
    ]),
    Text::make('Content'),
]),

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
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
Converted from issue

This discussion was converted from issue #5286 on January 31, 2023 22:19.