fixed auto add customer into tahesab
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user