Check out example codes for "laavel relation through morph". It will help you in understanding the concepts better.

Code Example 1

// Topic Model

public function users()
{
    return $this->hasManyThrough('App\User', 'App\Subscriber', 'subscribable_id')->where('subscribable_type', array_search(static::class, Relation::morphMap()) ?: static::class);
}

Learn ReactJs, React Native from akashmittal.com