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