-
Notifications
You must be signed in to change notification settings - Fork 154
Installing and managing modules from admin panel #847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi, I have an open issue for this here: #466 I'm gonna look through this PR and pull it down, might take me a bit, though. I just need to make sure this is compatible with how the modules should primarily work - so downloading them from the composer package manager/making sure that the packages are compatible with composer. Thanks for the PR! I will look through it and put some notes in soon. |
StyleCI is also showing some formatting errors. |
modules/ModulesManager/Http/Controllers/Frontend/IndexController.php
Outdated
Show resolved
Hide resolved
modules/ModulesManager/Database/migrations/2020_09_29_192757_create_modules_manager_table.php
Outdated
Show resolved
Hide resolved
modules/ModulesManager/Providers/ModulesManagerServiceProvider.php
Outdated
Show resolved
Hide resolved
Aside from the review changes, a few more things are needed - I want to store the module statuses in the database. So the database table/model structure will need to change a bit. A new https://github.com/nWidart/laravel-modules/blob/master/config/config.php#L203 A new |
But before you start doing those changes, let's discuss them over in #466, there's a lot of thinking through, especially for a project like this. Thanks!! |
Also, thinking about it, this shouldn't be a module, it should be a part of the core system. Meaning it'll need to be more tightly integrated, including a ModuleService encapsulating a lot of the functionality that's in the admin controller. |
Alright, will do the above mentioned things. So that it can be used for further development |
Umm, I am not much aware about |
Yeah sure! |
Sure, can do that. I will integrate it directly inside App\ . |
Okay, I'll check.. |
Yeah, fixed the files. |
I've merged this into dev, please try the importer from fresh and a fresh install and make sure it's working. |
Yeah, I tried it that day itself with the new commit. It worked. |
There is an error with migrations from modules not running - get this on the demo account. And some people are getting loops with the updater. I'm looking at it but you should too, add a migration in a module and it doesn't appear to run |
Umm so basically, when migrations are added to an exisiting module, they dont run through the updater? |
Ok, here's the problem, I'm trying to solve it now. If there's a module with migrations (for example, vmsacars), the migrations run first, then the module is enabled, then a seed tries to run. However, since a module isn't enabled when migrations run, the migrations for that module don't run. It's an issue of the sequencing. I'm trying to figure out how to solve it |
Alright, I'll try this too. |
Someone else is stuck in an update loop and can't get to the admin panel:
|
This is on a fresh install |
So, when fresh installed and a new update is pushed, the upgrade gets looped? |
No updates, just on a fresh install. |
Let me try and see what it logs again. |
Please check the new PR for Module Migration error. |
Did a fresh install using git clone. |
Try the dev tar file |
Okay
|
Alright, trying this one : https://codeload.github.com/nabeelio/phpvms/tar.gz/dev |
Okay |
Umm it's giving me Internal Server Error on xampp. |
Hey Nabeel, the installation went perfectly for me using the .tar file you provided.
|
Ok, so then there's an issue with modules and migrations |
Yeah, |
@nabeelio Check this nWidart/laravel-modules#1039 |
Modules Manager for installing and managing modules through admin panel.