Trying to retrieve a deferred service from the IoC in an other service provider fails.
class ServiceProvider extends \Illuminate\Support\ServiceProvider {
// ...
public function register() {
$router = \App::make('router'); // gets resolved
$hash = \App::make('hash'); // throws an error (Class hash does not exists)
}
// ...
}
Changing $deffered = false to true in the HashingServiceProvider resolves this problem.
What am I doing wrong?
Yes::it_is($static)