novius/laravel-artisan-streamed
Laravel Artisan Streamed
This package gives an interface to launch custom artisan commands and watch their outputs.
Requirements
- PHP >= 8.2
- Laravel Framework >= 10.0
NOTE: These instructions are for Laravel >= 10.0 and PHP >= 8.2 If you are using prior version, please see the previous version's docs.
Configuration
Some options that you can override are available.
php artisan vendor:publish --provider="Novius\LaravelArtisanStreamed\ArtisanStreamedServiceProvider" --tag="config"
Edit default templates
Run:
php artisan vendor:publish --provider="Novius\LaravelArtisanStreamed\ArtisanStreamedServiceProvider" --tag="views"
Prune old records
You can config database record retention in the app config file.
By default, app is configured to keep records during 30 days.
// App\Console\Kernel.php
protected function schedule(Schedule $schedule): void
{
$schedule->command('model:prune', [
'--model' => [Novius\LaravelArtisanStreamed\Models\LaunchedCommand::class],
])->daily();
}
Manually command :
php artisan model:prune --model="Novius\\LaravelArtisanStreamed\\Models\\LaunchedCommand"
Lint
Run php-cs with:
composer run-script lint
Contributing
Contributions are welcome! Leave an issue on Github, or create a Pull Request.
Licence
This package is under GNU Affero General Public License v3 or (at your option) any later version.
Related Packages
Laravel package to add command to list all scheduled artisan commands
Instant support for PHP Code Sniffer, PHP CS Fixer, and PHP MD in the Artisan CL...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.2.1 | >=8.2 | ^10.0 | | AGPL-3.0-or-later | |
| 2.2.0 | >=8.2 | ^10.0 | | AGPL-3.0-or-later | |
| 2.1.0 | >=8.2 | ^10.0| | AGPL-3.0-or-later | |
| 2.0.0 | >=8.2 | ^10.0| | AGPL-3.0-or-later | |
| 1.0.2 | >=8.1 | ^9.0| | AGPL-3.0-or-later | |
| 1.0.1 | >=8.1 | ^9.0| | AGPL-3.0-or-later | |
| 1.0.0 | >=8.1 | ^9.0| | AGPL-3.0-or-later |