Hide-options Last updated: 2022-10-01

Sometimes you want some data not to appear in certain places or in the form only or on the show page only

Or with one or more elements, so we are in agreement on this matter and we have not forgotten that. 

You can actually determine the state of the appearance of any element or even relationships

Once you use these methods on any item or relationship you want, it will do what you expect right away

 // by default true you can do it with dynamic function
text()->make('Name','name')->onlyIndex() // default (true) / true|false 
//and applied with all coming methods 
text()->make('Name','name')->onlyForms()
text()->make('Name','name')->onlyShow()

// or reverse  
text()->make('Name','name')->showInIndex()
text()->make('Name','name')->showInCreate()
text()->make('Name','name')->showInUpdate()
text()->make('Name','name')->showInShow()
// or all
text()->make('Name','name')->showInAll()
// or reverse hidden in All
text()->make('Name','name')->hideInAll()
// or custom hidden in some pages 
text()->make('Name','name')->hideInIndex()
text()->make('Name','name')->hideInCreate()
text()->make('Name','name')->hideInUpdate()
text()->make('Name','name')->hideInShow()

Woohoo.. It's really cool. 

I think you are now in agreement with me that you will use these methods according to your needs