id(); $table->string('name'); $table->string('type'); $table->foreignIdFor(User::class, 'responsible'); $table->morphs('contractable'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('contracts'); } };