fixed JobShouldQueue source_name issue..
This commit is contained in:
10
app/Utilities/QueueCollection.php
Normal file
10
app/Utilities/QueueCollection.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class QueueCollection extends Collection
|
||||
{
|
||||
|
||||
}
|
@ -157,3 +157,15 @@ if (!function_exists('cache_prefix')) {
|
||||
return company_id() . '_';
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('running_in_queue')) {
|
||||
/**
|
||||
* Detect if application is running in queue.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
function running_in_queue()
|
||||
{
|
||||
return defined('APP_RUNNING_IN_QUEUE') ?? false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user