label = 'Arkansas is not a state! Nice try.'; } return $item.' added.'; }, ); progress( label: 'Adding States With Label', steps: $states, callback: function ($item, $progress) { usleep(250_000); $progress ->label('Adding '.$item) ->hint("{$item} has ".strlen($item).' characters'); }, ); $progress = progress( label: 'Adding States Manually', steps: $states, ); $progress->start(); foreach ($states as $state) { usleep(250_000); $progress ->hint($state) ->advance(); } $progress->finish(); progress( 'Processing with Exception', $states, fn ($item) => $item === 'Arkansas' ? throw new Exception('Issue with Arkansas!') : usleep(250_000), );