Track machine counters and maintenance with counter and time intervals

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:52:49 +02:00
co-authored by Claude Sonnet 5.5
parent aac579257a
commit 3e1c671949
53 changed files with 2636 additions and 6 deletions
@@ -9,6 +9,7 @@ use App\Modules\Notifications\Application\UseCases\NotifyAddedPeople;
use App\Modules\Notifications\Domain\Contracts\NotificationRepository;
use App\Modules\Notifications\Infrastructure\Persistence\Repositories\EloquentNotificationQueries;
use App\Modules\Notifications\Infrastructure\Persistence\Repositories\EloquentNotificationRepository;
use App\Modules\Notifications\Presentation\Console\NotifyMaintenanceDueCommand;
use App\Modules\Notifications\Presentation\Console\NotifyTasksStartingSoonCommand;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;
@@ -39,7 +40,7 @@ class NotificationsServiceProvider extends ServiceProvider
Event::listen(PeopleAddedToJob::class, fn (PeopleAddedToJob $event) => app(NotifyAddedPeople::class)->forJob($event));
if ($this->app->runningInConsole()) {
$this->commands([NotifyTasksStartingSoonCommand::class]);
$this->commands([NotifyTasksStartingSoonCommand::class, NotifyMaintenanceDueCommand::class]);
}
}
}