$this->action(function (): void {
$this->process(static function (Collection $records): void {
$records->each(function (Model $record): void {
if (! method_exists($record, 'restore')) {
return;
}
$record->restore();
});
});
$this->success();
});
$this->action(function (): void {
$this->process(static function (Collection $records): void {
$records->each(function (Model $record): void {
if (! method_exists($record, 'restore')) {
return;
}
$record->restore();
});
});
$this->success();
});