Skip to main content

"Black Friday" Discount! Only until December 1st: 50% off all membership plans!

Read more here

koel/koel

17354 stars
1 code files
View koel/koel on GitHub

app/Models/Artist.php

Open in GitHub
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasManyThrough;
 
class Artist extends Model
{
//
public function songs(): HasManyThrough
{
return $this->hasManyThrough(Song::class, Album::class);
}
//
}