Added transaction details for the logged user
This commit is contained in:
@@ -58,4 +58,9 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->hasMany(Game::class, 'player1_user_id')->orWhere('player2_user_id', $this->id);
|
||||
}
|
||||
|
||||
public function transactions()
|
||||
{
|
||||
return $this->hasMany(CoinTransaction::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user