feat: adds ability for approved users to approve artwork

This commit is contained in:
2024-01-13 10:45:40 -06:00
parent bc66edb3ce
commit eb931bbb6a
9 changed files with 198 additions and 87 deletions

View File

@@ -65,9 +65,9 @@ class User extends Authenticatable
return $this->hasManyThrough(Artwork::class, Artist::class);
}
public function episodes()
public function selectedForEpisodes()
{
return $this->hasManyThrough(Episode::class, Artwork::class);
return $this->artists()->first()->episodes;
}
public function wallets()