Files
boursecu_server/app/Observers/CustomerObserver.php
T

19 lines
464 B
PHP
Raw Normal View History

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-06-27 22:10:29 +03:30
}
}