Introduction
I have a huge project which contains many Laravel projects that are responsible for different things. The projects partially share same database (users, permissions, roles, logs...) and for example there is one project which is used to handle user data and permissions for all another projects.
So in this case there was for example duplicated models in the projects (User, Permission, Role). I solved it by building independent package to be included as a Composer package to all projects that share those models.
Problem
My question is about required packages' configuration. For example, now I'm using Spatie's Permission package to handle permissions and roles. Each of my projects share the same configuration changes in those packages.
- Is there any way to handle those configurations in my shared package, too?
- Can one package override another's config file?
- How Laravel actually handles that kind of situation that there is configuration files with same name in required packages?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2CzTnxi
via IFTTT
Aucun commentaire:
Enregistrer un commentaire