Eduardo Fuerte
asked on
Could you give your opinion and hints about this modular approach by using Laravel?
Hi Experts
Could you give your opinion and hints about this modular approach by using Laravel?
Accordingly with the schema:
The purpose is to appart the frontend from the server's code.
This modularity gives the possibility of to use the modules when it needed on a project.
F.e. : a site uses Quiz - so the class represented by Module_Quiz is declared as an object of class Quiz on the main project.
In a very similar way that actually "vendor" class is declared at a common Laravel project.
At the front end - that could be using any frontend framework or jQuery/ Ajax, Laravel Blade - the server's code will be call by API.
It's probably an approach you had been using or has planned to use.
Thanks in advannce.
Could you give your opinion and hints about this modular approach by using Laravel?
Accordingly with the schema:
The purpose is to appart the frontend from the server's code.
This modularity gives the possibility of to use the modules when it needed on a project.
F.e. : a site uses Quiz - so the class represented by Module_Quiz is declared as an object of class Quiz on the main project.
In a very similar way that actually "vendor" class is declared at a common Laravel project.
At the front end - that could be using any frontend framework or jQuery/ Ajax, Laravel Blade - the server's code will be call by API.
It's probably an approach you had been using or has planned to use.
Thanks in advannce.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hey Eduardo,
Configuring your autoloads will go some way towards giving you a modular system, but there is more to it than that, as you'd need to make sure all your namespacing was correct, your service providers were registered correctly etc. For a simple module, you may just be able to setup your PSR-4 and have done with it, but for anything more complex, you'll want to look at the Module package I mentioned.
Configuring your autoloads will go some way towards giving you a modular system, but there is more to it than that, as you'd need to make sure all your namespacing was correct, your service providers were registered correctly etc. For a simple module, you may just be able to setup your PSR-4 and have done with it, but for anything more complex, you'll want to look at the Module package I mentioned.
ASKER
Hi Chris
Thank you for the replies.
I'm going to interact again as soon I get new informations on this project.
Thank you for the replies.
I'm going to interact again as soon I get new informations on this project.
ASKER
What I just "heard" is that by configuring composer.json by using PSR-4 (?) and then listing all the modules needed to the main project the job could be easyly acchieved (need to be confirmed).
Another worry is about the GIT branches to every module that needs to be apparted from the main project.
Probably next days I will obtain something else, a little bit more solid, about what is been done about.