Files
boursecu_server/app/Observers/CustomerObserver.php
T

15 lines
258 B
PHP

<?php
namespace App\Observers;
use App\Models\Customer;
use App\Services\TahesabSyncService;
class CustomerObserver
{
public function created(Customer $customer): void
{
app(TahesabSyncService::class)->registerOnCreate($customer);
}
}