File: /var/www/limestate-admin/app/Models/Job.php
<?php
namespace App\Models;
use App\Jobs\ResetCacheJob;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property string $queue
* @property string $payload
* @property int $attempts
* @property int $reserved_at
* @property int $available_at
* @property int $created_at
*/
class Job extends Model
{
protected $table = 'jobs';
public $timestamps = false;
public static function checkUpdateIndexJob(): bool
{
return self::query()->whereJsonContains('payload->displayName', ResetCacheJob::class)->exists();
}
}