Download the PHP package imtigger/laravel-job-status-progress-view without Composer
On this page you can find all versions of the php package imtigger/laravel-job-status-progress-view. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download imtigger/laravel-job-status-progress-view
More information about imtigger/laravel-job-status-progress-view
Files in imtigger/laravel-job-status-progress-view
Package laravel-job-status-progress-view
Short Description Laravel Job Status Progress View
License mit
Informations about the package laravel-job-status-progress-view
Laravel Job Status Progress View
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:
1. Add Service Provider (Laravel < 5.5)
Add the following to your config/app.php
:
Usage
In your routes.php
, add this route helper:
In your controller, redirect to this route after dispatching your job
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!