EditAction::make('edit')
->label('Rename')
->modalHeading('Rename Key')
->modalWidth('sm')
// ->form([
// Forms\Components\TextInput::make('name')
// ->label('Name')
// ->required()
// ->default(function ($record) {
// return $record->name;
// })
// ])
->action(function (array $data, $record) {
$record->update($data);
$this->service->sendNotification(
title: 'Successfully renamed key.',
success: true
);
}),
EditAction::make('edit')
->label('Rename')
->modalHeading('Rename Key')
->modalWidth('sm')
// ->form([
// Forms\Components\TextInput::make('name')
// ->label('Name')
// ->required()
// ->default(function ($record) {
// return $record->name;
// })
// ])
->action(function (array $data, $record) {
$record->update($data);
$this->service->sendNotification(
title: 'Successfully renamed key.',
success: true
);
}),