Files

20 lines
548 B
PHP

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