定制 novius/laravel-artisan-streamed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

novius/laravel-artisan-streamed

最新稳定版本:2.2.0

Composer 安装命令:

composer require novius/laravel-artisan-streamed

包简介

Launch and view outputs of artisan commands.

README 文档

README

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.

统计信息

  • 总下载量: 5.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2023-08-25