Fire invoice observer for invoice created from recurring
This commit is contained in:
parent
64aa4fe00f
commit
1d66cf3772
2 changed files with 2 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ class SendRecurring implements ShouldQueue
|
|||
|
||||
*/
|
||||
|
||||
event('eloquent.created: App\Models\Invoice', $invoice);
|
||||
|
||||
//Admin notification for recurring invoice sent.
|
||||
if ($invoice->invitations->count() >= 1 ) {
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ class InvoiceObserver
|
|||
*/
|
||||
public function created(Invoice $invoice)
|
||||
{
|
||||
nlog("ppo0");
|
||||
|
||||
$subscriptions = Webhook::where('company_id', $invoice->company_id)
|
||||
->where('event_id', Webhook::EVENT_CREATE_INVOICE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue