has('mempool-weather')) { $this->weather = cache()->get('mempool-weather'); } else { Artisan::call('test'); $this->weather = cache()->get('mempool-weather'); } $result = Http::get('https://mempool.space/api/v1/fees/recommended'); $result = $result->json(); $this->fastestFee = $result['fastestFee']; $this->halfHourFee = $result['halfHourFee']; $this->hourFee = $result['hourFee']; $this->economyFee = $result['economyFee']; $this->minimumFee = $result['minimumFee']; } public function render() { return view('livewire.banner.mempool-weather'); } }