<?phpnamespace App\Models;use Illuminate\Database\Eloquent\Factories\HasFactory;use Illuminate\Database\Eloquent\Model;use Illuminate\Support\Facades\Http;class TargetFinder extends Model{ use \Sushi\Sushi; public function getRows($data = []) { // Fetch data from your API if (count($data)) { $response = Http::get('https://jsonplaceholder.typicode.com/posts/' . $data['keyword'] . '/comments'); return $response->json(); } else { $response = Http::get('https://jsonplaceholder.typicode.com/posts/1/comments'); return $response->json(); } return []; }}