Skip to content

Commit 672b185

Browse files
committed
fixes: livewire table deleted on rollback
1 parent eb0484e commit 672b185

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Generators/Scaffold/ControllerGenerator.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,14 @@ public function rollback()
150150
$this->config->commandComment('DataTable file deleted: '.$this->fileName);
151151
}
152152
}
153+
154+
if ($this->config->tableType === 'livewire') {
155+
if ($this->rollbackFile(
156+
$this->config->paths->livewireTables,
157+
$this->config->modelNames->plural.'Table.php'
158+
)) {
159+
$this->config->commandComment('Livewire Table file deleted: '.$this->fileName);
160+
}
161+
}
153162
}
154163
}

0 commit comments

Comments
 (0)