Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mDelshad's avatar

relationship for user balances

Hello We have three models (user - currencies - balances) What should be the relationship of these tables, for example, I want to receive the amount of bitcoin currency of user. As the following code :

$coin->user->balance

//for example $coin = btc

0 likes
1 reply

Please or to participate in this conversation.