topnotch_website/app/Observers/InvoiceObserver.php

50 lines
865 B
PHP
Raw Normal View History

2024-12-10 15:28:14 -08:00
<?php
namespace App\Observers;
use App\Models\Invoice;
use Illuminate\Support\Facades\Log;
class InvoiceObserver
{
/**
* Handle the Invoice "created" event.
*/
public function created(Invoice $invoice): void
{
Log::debug('Invoice created');
}
/**
* Handle the Invoice "updated" event.
*/
public function updated(Invoice $invoice): void
{
\Log::debug('Invoice updated!');
}
/**
* Handle the Invoice "deleted" event.
*/
public function deleted(Invoice $invoice): void
{
//
}
/**
* Handle the Invoice "restored" event.
*/
public function restored(Invoice $invoice): void
{
//
}
/**
* Handle the Invoice "force deleted" event.
*/
public function forceDeleted(Invoice $invoice): void
{
//
}
}