Forms\Components\TextInput::make('internal')
->afterStateHydrated(function ($component, $state) {
if (! $state) {
$component->state(Str::uuid()->toString());
}
})
->disabled()
->suffixAction(CopyAction::make())
->dehydrateStateUsing(fn ($state) => $state ?? Str::uuid()->toString()),
Forms\Components\TextInput::make('internal')
->afterStateHydrated(function ($component, $state) {
if (! $state) {
$component->state(Str::uuid()->toString());
}
})
->disabled()
->suffixAction(CopyAction::make())
->dehydrateStateUsing(fn ($state) => $state ?? Str::uuid()->toString()),