lundi 11 novembre 2019

What are the uses of morphs column type in Laravel?

What kind of data can be stored with $table->morphs column type?

$table->morphs('taggable');

I do not fully understand the explationation given here.

Adds taggable_id UNSIGNED BIGINT and taggable_type VARCHAR equivalent columns.

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire