Laravel Job Status Progress View
imtigger/laravel-job-status-progress-view is a Laravel package for laravel job status progress view.
It currently has 25 GitHub stars and 96.053 downloads on Packagist (latest version 1.0).
Install it with composer require imtigger/laravel-job-status-progress-view.
Discover more Laravel packages by imtigger
or browse all Laravel packages to compare alternatives.
Last updated
Progress View page for Laravel Job Status
*** Testing phase only! ***
laravel-job-status >= 0.1.14This plugin can only be installed from Composer.
Run the following command:
composer require imtigger/laravel-job-status-progress-view
Add the following to your config/app.php:
'providers' => [
...
Imtigger\LaravelJobStatus\LaravelJobStatusServiceProgressViewProvider::class,
]
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
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!