title: The Response content must be a string or object implementing __toString(), "boolean" given. in laravel
body: <blockquote>
    <p>The Response content must be a string or object implementing __toString(), "boolean" given.</p>
  </blockquote>
  
  <hr>
  
  <p>Here is my code:</p>
  
  <pre><code> Route::get('/user/ip', function(Request $request) {
      $ip =$request-&gt;ip();
      //return $ip;
      return Curl::to('https://ipapi.co/'.$ip.'/json/')-&gt;get();
     });
  </code></pre>