nullableMorphs method

void nullableMorphs(
  1. String name
)

Adds nullable morphs (polymorphic relations)

Implementation

void nullableMorphs(String name) {
  string('${name}_type').nullable();
  bigInteger('${name}_id').unsigned().nullable();
}