Tables\Actions\Action::make('change_subject')
->fillForm(function(array($data) {}), // Populate this closure to set inital state
->form(fn(Form $form) =>
$form->schema([
Forms\Components\Select::make('subject')
->options([
//
])
])
)
->requiresConfirmation()
->action(function(Model $record, array $data) {
$record->update(['subject' => $data['subject']]);
}),SelectColumn::make('subject')
->options(SubjectClass::class)
->updateStateUsing(function (Page $livewire, $record) {
return $livewire->mountAction('updateSubject');
})
->sortable(), public function updateSubject()
{
return Actions\Action::make('updateSubject')
->action(fn () => dd('test'));
}