Comments (3)
Not sure what you mean exactly? Could explain a little bit better?
from laravel-modules.
So if I've got a module called "content" it could has a config file in "app/modules/content/config/sampleconfig.php", isn't it? But it would be great if I can use a config file in "app/config/modules/sampleconfig.php" which is another instance of the module's config file and also overrides its own. As you can already do it in packages (vendor/SampleVendor/SamplePackage/config/sampleconfig.php and app/config/packages/samplepackage/sampleconfig.php) thanks to the Config repository.
It could be useful if you always copy your modules directories from a big module library to your projects and in the future you will have to make some changes in some files (maybe on the config file), but you don't want to overwrite the module's existing configuration (which is already reading from "app/config/modules/sampleconfig.php"). If the package could read config files outside from the module directory you can avoid these situations.
I try to find some hook when the package is loaded in the service provider, but my knowledge about the Config container is a little bit limited yet and I don't know how to add another path location into it.
from laravel-modules.
I understand, I though this was setup before, but apparentely I've namespaced the module wrong. It was possible by adding files in (for content module):
app/config/app/content/
Which doesn't make sense ;)
I fixed this now, so you should be able to override the configuration with putting the config file inside:
app/config/modules/content/channels.php
You can take a look at the example app.
from laravel-modules.
Related Issues (20)
- Service Provider not being init'd with commands HOT 3
- What if we want to remove the module, unrun migrations and unpublish all assets?
- Module::run()
- Laravel modules with lavary/laravel-menu [No hint path defined] HOT 1
- module specific commands HOT 1
- Is there any update for Laravel 5 ? HOT 5
- Add assets in a module HOT 3
- how to run project HOT 2
- Composer update error HOT 1
- Software license? HOT 1
- use it in laravel 5.4? HOT 1
- is there any alternative of this ? HOT 1
- overwrite global validation language
- Modules folder outside the app folder HOT 1
- Models not loading HOT 7
- laravel workbench vs modules package?
- Composer dump-autoload problem HOT 8
- Validator messages() is empty HOT 1
- command to create module automatically
- Module's Load in Dependancy Order
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-modules.