Creating Modules Via Code instead of CLI #2000
Unanswered
ali-amento
asked this question in
Q&A
Replies: 1 comment 1 reply
-
you may need an additional step to "update" the cache by calling "module:clear-compiled" or "composer dump-autoload" before trying to use the module, also I think the module has to be enabled to migrate, so its worth checking its enabled. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I am working on a feature for my app that allows module installation through the admin panel using Livewire. The process includes uploading a ZIP file, creating a plain module, unzipping it, and running migrations and seeders. However, I am facing issues when executing the Artisan::call commands in my Livewire component.
Steps I am following:
Artisan::call('module:make', ['name' => [$module], '--plain' => true]);
Artisan::call('module:migrate', ['module' => $addonInfo->name]); Artisan::call('module:seed', ['module' => $addonInfo->name]);
Problem:
Questions:
Any help or suggestions on how to smooth this process would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions