app->configure('rpc'); // if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { // $this->publishes([$source => config_path('rpc.php')], 'rpc'); // } elseif ($this->app instanceof LumenApplication) { // $this->app->configure('rpc'); // } // var_dump($this->app instanceof LumenApplication); // false // exit(); $this->mergeConfigFrom($source, 'rpc'); } public function register() { $this->setupConfig(); $this->logger = new Logger('RPC.LOGGER'); $config = config('rpc'); $stream = new StreamHandler($config['log_path']); $stream->setFormatter(new $config['log_formatter']()); $this->logger->pushHandler($stream); } }