I have a Subscriber Model
// Subscriber Model
id
user_id
subscribable_id
subscribable_type
public function user()
{
return $this->belongsTo(\'App\\U
try this package https://github.com/staudenmeir/eloquent-has-many-deep
then you could use it like this:
class Topic extends Model
{
use \Staudenmeir\EloquentHasManyDeep\HasRelationships;
public function users()
{
return $this->hasManyDeep(
'App\User',
['App\Subscriber'],
[null, ['subscribable_type', 'subscribable_id']]
);
}
}