Build world campaigns rewards and recaps
This commit is contained in:
@@ -91,6 +91,14 @@ class GroupChallenge extends Model
|
||||
return $this->hasMany(GroupChallengeArtwork::class);
|
||||
}
|
||||
|
||||
public function outcomes(): HasMany
|
||||
{
|
||||
return $this->hasMany(GroupChallengeOutcome::class)
|
||||
->orderBy('sort_order')
|
||||
->orderBy('position')
|
||||
->orderBy('id');
|
||||
}
|
||||
|
||||
public function artworks(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Artwork::class, 'group_challenge_artworks')
|
||||
|
||||
Reference in New Issue
Block a user