承接 imtigger/laravel-job-status-progress-view 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

imtigger/laravel-job-status-progress-view

最新稳定版本:1.0

Composer 安装命令:

composer require imtigger/laravel-job-status-progress-view

包简介

Laravel Job Status Progress View

README 文档

README

Progress View page for Laravel Job Status

*** Testing phase only! ***

Requirements

  • PHP >= 5.6.4
  • Laravel >= 5.3
  • laravel-job-status >= 0.1.14

Installation

This plugin can only be installed from Composer.

Run the following command:

composer require imtigger/laravel-job-status-progress-view

1. Add Service Provider (Laravel < 5.5)

Add the following to your config/app.php:

'providers' => [
    ...
    Imtigger\LaravelJobStatus\LaravelJobStatusServiceProgressViewProvider::class,
]

Usage

In your routes.php, add this route helper:

    ...
    \Imtigger\LaravelJobStatus\ProgressController::routes();

In your controller, redirect to this route after dispatching your job

    $this->dispatch($job);
    return redirect()->action('\Imtigger\LaravelJobStatus\ProgressController@progress', [$job->getJobStatusId()]);

In your job, write the following fields to outputs

Field type Description
total_rows Integer Optional, If present show detailed results upon finished
success_rows Integer Optional, Ditto
skipped_rows Integer Optional, Ditto
failed_rows Integer Optional, Ditto
errors Array of String Optional, Usually for non-fatal exception message
message String Optional, Usually for fatal exception message
filename String Optional, Path for Storage::get(). If present, redirect to download that file upon finished

Customization

Run vendor:publish to publish progress view php artisan vendor:publish --provider="Imtigger\LaravelJobStatus\LaravelJobStatusServiceProgressViewProvider"

Then edit resources/views/vendor/laravel-job-status/progress.blade.php to adapt it to your favorite theme!

统计信息

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

GitHub 信息

  • Stars: 24
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: mit
  • 更新时间: 2018-09-06