It is necessary to expand the model that will have the wallet. This is done in two stages:
Wallet interface;HasWallet trait;Let's get started.
use Zotel\Wallet\Traits\HasWallet;
use Zotel\Wallet\Interfaces\Wallet;
class User extends Model implements Wallet
{
use HasWallet;
}
The model is prepared to work with a wallet.
How can I help you explore Laravel packages today?