File "SkipIfBatchCancelled.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/laravel/framework/src/Illuminate/Queue/Middleware/SkipIfBatchCancelled.php
File size: 383 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Illuminate\Queue\Middleware;
class SkipIfBatchCancelled
{
/**
* Process the job.
*
* @param mixed $job
* @param callable $next
* @return mixed
*/
public function handle($job, $next)
{
if (method_exists($job, 'batch') && $job->batch()?->cancelled()) {
return;
}
$next($job);
}
}