public function register()
        $apiKey = $this->getConfig('apiKey');
        $broadcasterId = $this->getConfig('broadcasterId');

        $this->app->singleton('SomeService', function ($app) {
            return new SomeService($apiKey, $broadcasterId);

When I inject this, I keep getting a required key error for the constructor of SomeService. If I dump the values outside the function, I can see that they have values, but I can't tell what's happening inside function ($app).

It's been awhile since I've worked with PHP, but I thought this would have worked.