getContributedSongs() public method

Get songs *contributed* (in compilation albums) by the artist.
public getContributedSongs ( ) : Illuminate\Database\Eloquent\Collection
return Illuminate\Database\Eloquent\Collection
示例#1
0
文件: Download.php 项目: phanan/koel
 protected function fromArtist(Artist $artist)
 {
     // Don't forget the contributed songs.
     $songs = $artist->songs->merge($artist->getContributedSongs());
     return $this->fromMultipleSongs($songs);
 }