id(); $table->string('name'); $table->string('slug'); $table->timestamps(); }); Schema::table('zoomyboy_event_participants', function (Blueprint $table) { $table->foreignId('event_id')->constrained('zoomyboy_event_events'); }); } public function down() { if (Schema::hasTable('zoomyboy_event_participants')) { Schema::table('zoomyboy_event_participants', function (Blueprint $table) { $table->dropForeign(['event_id']); $table->dropColumn('event_id'); }); } Schema::dropIfExists('zoomyboy_event_events'); } }