Files
admin/app/Console/Commands/NotifyExpiringPackages.php
Husanjonazamov e0f1989655 classify admin
2026-02-24 12:52:01 +05:00

24 lines
603 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Services\ExpiringItemService;
class NotifyExpiringPackages extends Command
{
protected $signature = 'notify:expiring-packages';
protected $description = 'Send notifications for expiring packages.';
public function __construct()
{
parent::__construct();
}
public function handle(ExpiringItemService $expiringItemService)
{
$expiringItemService->notifyExpiringPackages();
$this->info('Expiring packages notifications sent successfully.');
}
}