updates
This commit is contained in:
parent
0883842750
commit
f82c0604eb
|
|
@ -719,7 +719,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||||
public function findLatestReferral(string $account_key)
|
public function findLatestReferral(string $account_key)
|
||||||
{
|
{
|
||||||
|
|
||||||
return = collect($this->referral_earning)
|
return collect($this->referral_earning)
|
||||||
->filter(function ($earning) use ($account_key) {
|
->filter(function ($earning) use ($account_key) {
|
||||||
return $earning->account_key === $account_key;
|
return $earning->account_key === $account_key;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue