|
@@ -198,16 +198,10 @@ class User extends Model
|
|
|
return $this->hasMany(Comment::class);
|
|
|
}
|
|
|
/**
|
|
|
- *@return HasMany|Like
|
|
|
- */
|
|
|
- public function like(){
|
|
|
- return $this->hasMany(Like::class);
|
|
|
- }
|
|
|
- /**
|
|
|
*@return HasMany|Favourite
|
|
|
*/
|
|
|
public function favourite(){
|
|
|
- return $this->hasMany(Favourite::class);
|
|
|
+ return $this->hasMany(Favourite::class)->where('fav_type','goods');
|
|
|
}
|
|
|
public function feedback(){
|
|
|
return $this->hasMany(Feedback::class);
|
|
@@ -215,6 +209,9 @@ class User extends Model
|
|
|
public function moneylog(){
|
|
|
return $this->hasMany(MoneyLog::class);
|
|
|
}
|
|
|
+ public function tax(){
|
|
|
+ return $this->hasMany(UserTax::class);
|
|
|
+ }
|
|
|
/**
|
|
|
*@return ScoreLog|HasMany
|
|
|
*/
|