芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/app/Listeners/NewInvoiceRecurringListener.php
type && request()->type == 'send') { if (($event->invoice->project && $event->invoice->project->client_id != null) || $event->invoice->client_id != null) { $clientId = ($event->invoice->project && $event->invoice->project->client_id != null) ? $event->invoice->project->client_id : $event->invoice->client_id; // Notify client $notifyUser = User::withoutGlobalScope(ActiveScope::class)->findOrFail($clientId); if ($event->status == 'status') { Notification::send($notifyUser, new InvoiceRecurringStatus($event->invoice)); } else { Notification::send($notifyUser, new NewRecurringInvoice($event->invoice)); } } } } }