Skip to main content

koel/koel

16892 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);
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.