- Add database migrations for plans, subscriptions, notification preferences, and notification log tables - Implement DispatchUserNotificationJob to handle channel resolution, daily limits, and logging (sent/tier_restricted/daily_limit) - Add SendScheduledWhatsAppJob for scheduled notification delivery - Create PlanFeatures service to resolve tier capabilities, check daily limits, and validate fuel
25 lines
507 B
PHP
25 lines
507 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Plans\Pages;
|
|
|
|
use App\Filament\Resources\Plans\PlanResource;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
class EditPlan extends EditRecord
|
|
{
|
|
protected static string $resource = PlanResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [];
|
|
}
|
|
|
|
protected function afterSave(): void
|
|
{
|
|
if (Cache::supportsTags()) {
|
|
Cache::tags(['plans'])->flush();
|
|
}
|
|
}
|
|
}
|