mtvs_dev
4 years ago

Access to Config service inside App\Console\Kernel::schedule()

Posted 4 years ago by mtvs_dev

I want to get a couple of config values in the App\Console\Kernel::schedule() but the following error occurs:

ReflectionException: Class config does not exist in /home/vagrant/Code/sm/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 776

Probably the bindings hasn't happened yet, Is there a solution for this?

I want to set up the scheduling based on my config values.

Please sign in or create an account to participate in this conversation.