PHP code example of tochka-developers / laravel-job-visibility
1. Go to this page and download the library: Download tochka-developers/laravel-job-visibility library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tochka-developers / laravel-job-visibility example snippets
Queue::after(function (JobProcessed $event) {
$job = app('QueueCurrentJob');
// $job - экземпляр выполняемой задачи, т.е. сохраняет состояние после выполнения задачи
// ...
return true;
});