id(); $table->string('name'); $table->enum('type', DocumentType::getValues()) ->default(DocumentType::Other); $table->integer('documentable_id'); $table->string('documentable_type'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('documents'); } }