Laravel Livewire & API Response Help

  • Welcome to Babiato Forum! All Resources are 100% clean and Safe to Use

cheatshaven

Member
Jul 30, 2019
67
54
18
Hey guys, I'm a newbie dev working on a Laravel livewire app. I am trying to loop through this response in the view. Its been 3 days and I can't seem to access the array. Anyone-one with the knowledge please assist.

Livewire Controller:
public $keyword;


$response = Http::get($getKeywords)->json();
$this->keyword = $response;


The below is the data returned when: dd ($this->keyword);

Capture.PNG


Blade view:
@foreach($this->keyword as $keywords)
{$keywords['text']}
@endforeach

Please help me return the data in the view.
 

About us

  • Babiato Forum - The webmaster community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day, updating Daily resource to make sure our community is one of the best.

Quick Navigation

User Menu