id(); $table->string('name'); $table->enum('document_type', DocumentType::getValues()) ->default(DocumentType::Other); $table->foreignId('car_id') ->onUpdate('cascade') ->onDelete('cascade') ->constrained('cars'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('documents'); } }