nunomaduro/laravel-console-task
| Install | |
|---|---|
composer require nunomaduro/laravel-console-task |
|
| Latest Version: | v1.11.0 |
| PHP: | ^8.2 |
| Laravel: | 11 · 12 · 13 |
| Older releases: | 5 – 10 |
| License: | MIT |
| Last Updated: | Feb 24, 2026 |
| Links: | GitHub · Packagist |
About Laravel Console Task
Laravel Console Task was created by, and is maintained by Nuno Maduro, and is output method for Laravel Console Commands.
Installation
Requires:
Require Laravel Console Task using Composer:
composer require nunomaduro/laravel-console-task
Usage
class LaravelInstallCommand extends Command
{
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->task('Installing Laravel', function () {
return true;
});
$this->task('Doing something else', function () {
return false;
});
// Specify a 3rd parameter for a custom loading message
// Default is `loading...`
$this->task('Long task', function () {
sleep(60);
return true;
}, 'sleeping...');
}
}
Contributing
Thank you for considering to contribute to Laravel Console Task. All the contribution guidelines are mentioned here.
You can have a look at the CHANGELOG for constant updates & detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: @enunomaduro
License
Laravel Console Task is an open-sourced software licensed under the MIT license.
Related Packages
Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero ar...
Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.
Cli error handling for console/command-line PHP applications.
A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.
Laravel Console Spinner is a spinner output for Laravel command line.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.11.0 | ^8.2 | ^11.0| | MIT | |
| v1.10.0 | ^8.2 | ^10.0| | MIT | |
| v1.9.0 | ^8.1 | ^10.0| | MIT | |
| v1.8.0 | ^8.1 | ^9.0| | MIT | |
| v1.7.0 | ^7.2.5| | ^6.0| | MIT | |
| v1.6.1 | ^7.2.5| | ^6.0| | MIT | |
| v1.6.0 | ^7.2.5| | ^6.0| | MIT | |
| v1.5.0 | ^7.2.5 | ^6.0| | MIT | |
| v1.4.0 | ^7.0 | ~5.5.26| | MIT | |
| v1.3.0 | ^7.0 | ~5.5.26| | MIT | |
| v1.2.0 | ^7.0 | ~5.5.26| | MIT | |
| v1.1.0 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.7 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.6 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.5 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.4 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.3 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.2 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.1 | ^7.0 | ~5.5.26| | MIT | |
| v1.0.0 | ^7.0 | ~5.5.26 | MIT |