Comments (7)
I'm having the same problem.
from framework.
I am assuming the Translation package of illuminate needs some adjustment to solve this problem.
from framework.
OK, the problem is I need to make the package
call from the boot
method and not the register
method. The issue you're running into is the TranslationServiceProvider hasn't been registered yet.
from framework.
Fixed.
from framework.
Digging this up again @taylorotwell... What would you suggest people do if they need configuration available during the register process? Because you can't bootstrap a package (just the lang side of it anyway) from the register()
method should people be registering the service within the boot()
if they need configuration. Or should they just use $this->app['config']->package()
to do the config side manually in the register()
method if they need to.
Cheers.
from framework.
I'm confused, Jason. Shouldn't the config provider be registered before all those service providers?
from framework.
@jasonlewis I see you have a point and I like to to say that I am using boot method as suggested by Taylor for now but using $this->app['config']->package() sounds good to me.
from framework.
Related Issues (20)
- whereHas, withWhereHas doesn't work properly with "withAvg.... " methods. HOT 4
- 'array' validation rule passes when the value is an empty string and required_array_keys passes as long as at least 1 key exists HOT 1
- Error in observe function of HasEvent trait due to model dependency handling in Laravel 10.44.0 HOT 1
- [v11] Spark middleware does not exist HOT 4
- page expired when login HOT 1
- Incorrect behaviour "SQLite doesn't support multiple calls to dropColumn / renameColumn in a single modification." HOT 3
- Sessions table is created even though driver is set to redis HOT 8
- My subdomain only index page works but others all page not works error 500
- Race condition when scheduling commands with withoutOverlapping() using Redis/Memcached HOT 3
- Integration of "whereLike & whereHasLike" Syntax in Eloquent Builder
- ### Laravel Version HOT 1
- The method throwUnless() does not exists in Http response class HOT 2
- Named parameter $api overwrites previous argument HOT 3
- SortedMiddleware Error Control Operator Usage HOT 1
- [11.x] Standalone usage of `illuminate/collections` is broken HOT 1
- Different variable name on the route than what was defined. HOT 1
- unable to add 'Reply-To' header in Mailables HOT 2
- ValidationRuleParser::filterConditionalRules($rules, $this->data) rewrites via reference $this->data HOT 2
- Better SQL server documentation HOT 1
- Better SQL server documentation HOT 1
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 framework.