Panjeh shows us a few tips on how to prepare migration files for Polymorphic Relationships in Laravel.

laravel migration files

There are two ways to prepare a migration file for one-to-one and one-to-many Polymorphic Relationships. In making “Laravel migration file” we need to define these general columns: morphable_id , morphable_type