title: URL::to('/') echoed as string (Laravel)
body: <p>I'm working with my project which get new orders and append to DOM with jQuery.</p>
  
  <p><b>jQuery</b></p>
  
  <pre><code>setInterval(function() {
    $.ajax({
      type:'POST',
      url:'{{URL::to('/')}}/orders',
      success:function(data)
      {                           
        let obj = JSON.parse(data)
        let ordersDiv = $('#ordersDiv');
        let queueCount = $('#queueCount');
  
        queueCount.html(obj.count);
        ordersDiv.html(obj.data);
  
      }
    });
  }, 15000);
  </code></pre>
  
  <p><b>Controller</b></p>
  
  <pre><code>//some code here
  
  $data .= "&lt;a class=\"example-image-link\" 
               href=\"{{URL::to('/')}}/users/uploads/profiles/{{strlen($biker- 
                &gt;picture_file_path)&gt;0?$biker&gt;picture_file_path:'avatar.png'}}\"&gt;
               &lt;img src=\"URL::to('/')/users/uploads/profiles/$biker- 
               &gt;picture_file_path:.'avatar.png'\" data-toggle=\"tooltip\" 
               title=\"HiBes Biker\"&gt;
              &lt;/a&gt;";
  //more code here
  </code></pre>
  
  <p>My problem is that I'm getting this result:</p>
  
  <pre><code>&lt;a href=\"{URL::to('\/')}\/order-details\/3159\"&gt;Details&lt;\/a&gt;
  </code></pre>
  
  <p>I expect a result something like this:</p>
  
  <pre><code>&lt;a href=\"http://127.0.0.1:8000/order-details\/3159\"&gt;Details&lt;\/a&gt;
  </code></pre>