Weave 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

Deposit float

A deposit is a sum of money which is part of the full price of something, and which you pay when you agree to buy it.

In this case, the Deposit is the replenishment of the wallet.

User Model

Make a Deposit

Find user:

$user = User::first(); 

As the user uses HasWalletFloat, he will have balance property. Check the user's balance.

$user->balance; // 0
$user->balanceInt; // 0
$user->balanceFloatNum; // 0

The balance is zero, which is what we expected.

$user->depositFloat(10.1); 
$user->balance; // 1010
$user->balanceInt; // 1010
$user->balanceFloatNum; // 10.1

Wow!

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.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route