feat: Add notification services for Email, Telegram, and WhatsApp
- Implement EmailNotifier for sending batch and test notifications via email. - Implement TelegramNotifier for sending batch and test notifications via Telegram. - Implement WahaNotifier for sending batch and test notifications via WhatsApp using WAHA API. - Create migration for client_categories table and update clients table to include category_id. - Create migration for notification_settings table to manage notification configurations. - Add ClientCategorySeeder to populate default client categories. - Create manifest.json for PWA support. - Implement service worker (sw.js) for caching static assets and offline support. - Add edit event view for modifying scheduled events. - Create search results view for displaying search queries. - Develop notification settings view for configuring notification channels and triggers.
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
<?php
|
||||
|
||||
use App\Services\NotificationDispatcher;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Schedule;
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->purpose('Display an inspiring quote');
|
||||
|
||||
Artisan::command('notifications:dispatch', function () {
|
||||
/** @var NotificationDispatcher $dispatcher */
|
||||
$dispatcher = app(NotificationDispatcher::class);
|
||||
$dispatcher->dispatchAll();
|
||||
$this->info('🔔 Notifications dispatched.');
|
||||
})->purpose('Send all pending KOL Manager notifications');
|
||||
|
||||
// Run every hour automatically
|
||||
Schedule::command('notifications:dispatch')->hourly();
|
||||
|
||||
Reference in New Issue
Block a user