2026-06-27 22:10:29 +03:30
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Observers;
|
|
|
|
|
|
|
|
|
|
use App\Models\Customer;
|
2026-07-05 16:43:34 +03:30
|
|
|
use App\Services\PargarSyncService;
|
2026-06-27 22:10:29 +03:30
|
|
|
use App\Services\TahesabSyncService;
|
2026-07-23 20:24:58 +03:30
|
|
|
use App\Services\ZarinSyncService;
|
2026-06-27 22:10:29 +03:30
|
|
|
|
|
|
|
|
class CustomerObserver
|
|
|
|
|
{
|
|
|
|
|
public function created(Customer $customer): void
|
|
|
|
|
{
|
|
|
|
|
app(TahesabSyncService::class)->registerOnCreate($customer);
|
2026-07-23 20:24:58 +03:30
|
|
|
app(ZarinSyncService::class)->registerOnCreate($customer);
|
2026-07-05 16:43:34 +03:30
|
|
|
app(PargarSyncService::class)->registerOnCreate($customer);
|
2026-10-28 16:51:47 +03:30
|
|
|
app(\App\Services\ShayeganSyncService::class)->registerOnCreate($customer);
|
2026-06-27 22:10:29 +03:30
|
|
|
}
|
|
|
|
|
}
|