Closed maicol07 closed 9 months ago
Hi @maicol07 this is definitely a cool idea, but it feels a bit overkill. For a module, it could easily delete classes, but identifying the migration file to delete feels like a hack. if you're using capsules, deleting a module is about dropping a single folder, so the command would feel unnecessary. Same for blocks, they are a single file.
I wouldn't discard a clean PR that does it, but it's not something I think we should spend time on on our end.
Something we've been feeling like we could need, would be a rename module/capsule command. But even that, we haven't felt like we really needed it that much to invest time into.
Summary
Currently, we can generate modules, blocks, capsules, ... via
php artisan twill:make:<type>
but we can't delete them via CLI.Describe the solution you'd like
A mirror command to delete the generated files and DB tables. Example: