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
@@ -0,0 +1,22 @@
<?php
namespace App\Modules\Notifications\Presentation\Console;
use App\Modules\Notifications\Application\UseCases\NotifyMaintenanceDue;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
#[Signature('notifications:maintenance-due')]
#[Description('Notify the responsible persons of machines whose maintenance is coming up or late (run daily at 7.00)')]
class NotifyMaintenanceDueCommand extends Command
{
public function handle(NotifyMaintenanceDue $notify): int
{
$added = $notify->execute();
$this->components->info("{$added} notifications added.");
return self::SUCCESS;
}
}