$targets the selection in the trash, narrowed to the rows the caller may change * @return int how many rows were changed */ public function handle(Builder $targets, BulkTarget $target): int { $count = $targets->restore(); if ($count > 0) { activity() ->event('restored') ->withProperties($target->describe($count)) ->log("Bulk restored {$count} products"); ProductStats::forget(); } return $count; } }