added automation

This commit is contained in:
2026-08-23 14:16:00 +03:30
parent 0c0b424a69
commit 657c10d1cc
19 changed files with 1372 additions and 0 deletions
@@ -212,6 +212,7 @@ class WalletController extends Controller
} catch (\Throwable $e) {
report($e);
}
\App\Services\Automation\AutomationEvents::fire('wallet.rial_charge', (int) $customer->id);
return response()->json(true);
}
@@ -324,6 +325,10 @@ class WalletController extends Controller
report($e);
}
if ((float) $data['value'] > 0) {
\App\Services\Automation\AutomationEvents::fire('wallet.rial_charge', (int) $customer->id);
}
$this->broadcastCustomerWalletAssets($customer);
return response()->json(true);