diff --git a/src/Concerns/Trackable.php b/src/Concerns/Trackable.php index e190dd1..fac7a83 100644 --- a/src/Concerns/Trackable.php +++ b/src/Concerns/Trackable.php @@ -25,7 +25,7 @@ public function withoutTracking(bool $shouldTrack = false): void public function shouldTrack(): bool { - return $this->shouldTrack; + return $this->shouldTrack && config('laravel-job-status.enabled', true); } public static function search(array $tags = []): Builder