title: Property [sku] does not exist on this collection instance
body: <p>I am new to laravel and I tried to get the SKU key result in the mentioned cURL query. However when I tried to print the <code>$returnResult-&gt;sku</code> it says SKU does not exist. Could you help me?</p>
  
  <p><img src="https://i.stack.imgur.com/Ylnpo.png" alt="enter image description here"></p>
  
  <pre class="lang-php prettyprint-override"><code>public function search_by_id($name, $id)
  {
  
      $returnResult = DB::table('glassfilms')
          -&gt;where('id', '=', $id)
          -&gt;get();
  
      //return $id;
      //return $returnResult;
  
      $curl = curl_init();
  
      curl_setopt_array($curl, array(
          CURLOPT_URL =&gt; "http://localhost/amfrost_crm/help_pages/getProductAPI.php?products='$returnResult-&gt;sku'",
          CURLOPT_RETURNTRANSFER =&gt; true,
          CURLOPT_ENCODING =&gt; "",
          CURLOPT_TIMEOUT =&gt; 30000,
          CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,
          CURLOPT_CUSTOMREQUEST =&gt; "GET",
          CURLOPT_HTTPHEADER =&gt; array(
              // Set Here Your Requesred Headers
              'Content-Type: application/json',
          ),
      ));
      $response = curl_exec($curl);
      $err = curl_error($curl);
      curl_close($curl);
  
      if ($err) {
          echo "cURL Error #:" . $err;
      } else {
          return $response;
      }
  }
  </code></pre>