Prepare migration files for Polymorphic Relationships in Laravel
Panjeh shows us a few tips on how to prepare migration files for Polymorphic Relationships in Laravel.
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
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5.8 Laravel 5.7 Laravel 5.6 Laravel 5.5 Laravel 5.4 Laravel 5.3 Laravel 5 Intermediate