Inherits from Hidden.
* has the same capabilities
The ID field is used for the primary key.
Like the Hidden field, it is displayed only in the "preview" mode and does not appear in forms.
make(Closure|string|null $label = 'ID',?string $column = 'id',?Closure $formatted = null,)make(Closure|string|null $label = 'ID',?string $column = 'id',?Closure $formatted = null,)
If the primary key has a name that is different from id, you need to specify the arguments in the make() method.
use MoonShine\UI\Fields\ID;ID::make(column: 'primary_key')use MoonShine\UI\Fields\ID;ID::make(column: 'primary_key')