Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Wallet Laravel Package

zotel/laravel-wallet

View on GitHub
Deep Wiki
Context7

Tracking the creation of wallet transactions

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.

Version 9.1 introduces an interface to which you can subscribe. This is done using standard Laravel methods. More information in the documentation.

use Zotel\Wallet\Internal\Events\TransactionCreatedEventInterface;

protected $listen = [
    TransactionCreatedEventInterface::class => [
        MyWalletTransactionCreatedListener::class,
    ],
];

And then we create a listener.

use Zotel\Wallet\Internal\Events\TransactionCreatedEventInterface;

class MyWalletTransactionCreatedListener
{
    public function handle(TransactionCreatedEventInterface $event): void
    {
        // And then the implementation...
    }
}

It's simple!

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle