Example of HasManyThrough in agorakit/agorakit

File app/User.php (link to Github)
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    //
    public function discussionsSubscribed()
    {
        return $this->hasManyThrough(\App\Discussion::class, \App\Group::class);
    }
    //
}

Additional resources on HasManyThrough: