public function models($class) { return $this->morphedByMany($class, 'mediable')->withPivot('tag', 'order'); }