You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The events are similar to the events for updating the balance, only for the creation of a wallet. A frequent case of transferring data via websockets to the front-end.
4
+
5
+
Version 7.3 introduces an interface to which you can subscribe.
6
+
This is done using standard Laravel methods.
7
+
More information in the [documentation](https://laravel.com/docs/8.x/events).
8
+
9
+
```php
10
+
use Bavix\Wallet\Internal\Events\WalletCreatedEventInterface;
11
+
12
+
protected $listen = [
13
+
WalletCreatedEventInterface::class => [
14
+
MyWalletCreatedListener::class,
15
+
],
16
+
];
17
+
```
18
+
19
+
And then we create a listener.
20
+
21
+
```php
22
+
use Bavix\Wallet\Internal\Events\WalletCreatedEventInterface;
23
+
24
+
class MyWalletCreatedListener
25
+
{
26
+
public function handle(WalletCreatedEventInterface $event): void
0 commit comments