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