public function __construct(Repository $config) { $this->config = $config->get('laravel-demo-mode'); }