Why is my $record->save(); not working
Should I expect one of these to save the current record?
Or
The field changes on the scren but is not save.
Or
The field changes on the scren but is not save.
Action::make('Run Campaign')
->action(function (Campaign $record, Set $set) {
$set('status_id', CampaignStatusEnum::Run );
$record->save();
}), Action::make('Pause Campaign')
->action(function (?Model $record, Set $set) {
$set('status_id', CampaignStatusEnum::Paused );
$record->save();
}) Action::make('Pause Campaign')
->action(function (?Model $record) {
$record->status_id = CampaignStatusEnum::Paused;
$record->save();
})