fixed auto add customer into tahesab

This commit is contained in:
2026-06-27 22:10:29 +03:30
parent 58b55b920a
commit e21e97988c
4 changed files with 127 additions and 28 deletions
+14
View File
@@ -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);
}
}