Relationship MORPH

0

I'm modifying a table of the database, in case a morph relationship of the fields that conform to the image is to be made.

I'm using Laravel 5.6

How do I make this relationship within the migration?

    
asked by anonymous 13.06.2018 / 19:12

1 answer

1

In the documentation says to do the Morph so

$table->morphs('taggable'); Adds taggable_id UNSIGNED BIGINT and  taggable_type VARCHAR equivalent columns.

as link

    
14.06.2018 / 15:22