Jens Segers on

CLI progress bars in Laravel

Laravel 5.1 was released this week, and it came with a lot of interesting goodies. One of those goodies was the addition of Symfony's progress bar support for console commands. I have a lot of commands that I use to perform periodic tasks, and this will certainly make the output a lot nicer!


foreach ($users as $user) {



Which generates this output:

> php artisan my:command
17/50 [=========>------------------]  34%

For more information about this feature, check the original Laravel documentation.


Tweet about this blog post and you will appear below!