mirror of
https://repo.getmonero.org/AnonDev/xmrmemes.git
synced 2025-06-01 15:15:08 -04:00
Almost complete site
Add dark / light theme Add social sharing on meme pages Add approving / pending admin section Improve design Add pagination on profiles Make front end date time user friendly Finish rough draft of site And Much more... Still need to fix a few minor things before it goes live. Almost complete.
This commit is contained in:
parent
52a9007882
commit
dbfda5cf9e
39 changed files with 54195 additions and 663 deletions
|
@ -51,6 +51,7 @@ class User extends Authenticatable
|
|||
|
||||
public function tips()
|
||||
{
|
||||
return $this->hasManyThrough(Tip::class, Meme::class, 'address_id', 'id', 'id', 'address_id');
|
||||
return $this->hasManyThrough(Tip::class, Meme::class, 'id', 'address_id');
|
||||
}
|
||||
|
||||
|
@ -61,7 +62,7 @@ class User extends Authenticatable
|
|||
|
||||
public function getTipsTotalAttribute()
|
||||
{
|
||||
return $this->tips->sum('amount_formatted');
|
||||
return $this->tips->where('is_deposit', 1)->sum('amount_formatted');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue