© 2026 Hedgehog Software, LLC
Action::make('approve') ->action(function (Post $record) { $record->approve(); $this->refreshFormData([ 'status', ]); })
form
$this->refreshFormData()
action
Using $this when not in object context
class DocumentResource extends Resource { public static function form(Form $form): Form { return $form ->schema([ Section::make('AI generated content') ->headerActions([ Action::make('Auto-generate fields') ->icon('heroicon-m-sparkles') ->action(function (Document $record) { UpdateDocumentMetadata::run($record); $form->refreshFormData(); }) ]) ->schema([ // ...