15 lines
258 B
PHP
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);
|
|
}
|
|
}
|