bavix / laravel-wallet

It's easy to work with a virtual wallet
https://bavix.github.io/laravel-wallet/
MIT License
1.14k stars 230 forks source link

Can a new field be added to the transfer table? #864

Closed hamedkhorasani closed 9 months ago

hamedkhorasani commented 9 months ago

Hello @rez1dent3 I have two types of transfers. One type of transfer is transfer to friends, which is called transfer. Another type is transfer to the company account, which has a different name, for example, payment. In the dashboard, the history pages of these two types are different. I want this transfer whose name is Transfer to be displayed on the transfers page and payments on the payments page. How to fetch only one type of transfer, for example, payment?

rez1dent3 commented 9 months ago

Hello. I think we need to think about it. It might be worth adding meta, similar to transaction

hamedkhorasani commented 9 months ago

I think this is a necessary feature

rez1dent3 commented 9 months ago

@hamedkhorasani Please look at the PR #865. In theory, this is enough. By analogy with transaction, you can add any number of columns.

rez1dent3 commented 9 months ago

But, this change breaks backward compatibility. Therefore, it will go to version 11.x, which should be released soon. Version 11 will support laravel 11, so you will need to update.

hamedkhorasani commented 9 months ago

For now, using transection solves my problem. But it can be more attractive as an idea. I very much appreciate your help.

rez1dent3 commented 9 months ago

Okay. The feature will appear in 11.x