Tables\Actions\Action::make('resetPassword')
->requiresConfirmation()
->fillForm([
'password' => Str::random(12),
])
->form([
Forms\Components\TextInput::make('password')
->required()
->hintAction(
Action::make('refresh')
->hiddenLabel()
->icon('heroicon-o-arrow-path')
->action(function (array $data) {
dd($data); // how to make random 'password' again?
})
)
])
Tables\Actions\Action::make('resetPassword')
->requiresConfirmation()
->fillForm([
'password' => Str::random(12),
])
->form([
Forms\Components\TextInput::make('password')
->required()
->hintAction(
Action::make('refresh')
->hiddenLabel()
->icon('heroicon-o-arrow-path')
->action(function (array $data) {
dd($data); // how to make random 'password' again?
})
)
])