kline_data = $kline_data; } /** * Execute the job. * * @return void */ public function handle() { // if(empty($this->kline_data)){ return 0; } $currency_id = $this->kline_data['currency_id']; $currency = Currency::find($currency_id); if($currency){ $currency->price = $this->kline_data['close']; $currency->save(); } } }