novius / laravel-artisan-streamed
Launch and view outputs of artisan commands.
Installs: 1 770
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- laravel/framework: ^9.0|^10.0
Requires (Dev)
- laravel/pint: ^1.7
This package is auto-updated.
Last update: 2024-04-29 16:52:34 UTC
README
This package gives an interface to launch custom artisan commands and watch their outputs.
Requirements
- PHP >= 8.1
- Laravel Framework >= 9.0 | >= 10.0
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.