morphedByMany(User::class, 'languagable'); } /** * Get all organizations that are assigned to this language. */ public function organizations() { return $this->morphedByMany(Organization::class, 'languagable'); } /** * Get all posts that are assigned to this language. */ public function posts() { return $this->morphedByMany(Post::class, 'languagable'); } }