Polymorphism in Other Frameworks

Learn how polymorphism works in other frameworks.

Some frameworks, notably ActiveRecord and Laravel, have a built-in convention to support polymorphic relationships. Here’s how we might follow that convention with our notes feature.

Make arrangements

Say that our notes table started with just the following two columns.

Get hands-on with 1200+ tech skills courses.