title: how to pass button from controller to view with url?
body: <p>i am trying to pass button from controller to view here i tried this code</p>
  <pre><code>    function sendbutton (){
  
        $order = 1;
        return   '&lt;a href=&quot;{{ url(&quot;user/order/geOrder/&quot;) . $order) }}&quot; class=&quot;btn btn-primary&quot; style=&quot;color:white&quot;&gt;Edit Order&lt;/a&gt;'
      }
  </code></pre>
  <p>it render successfully but problem is that my axpecting url should be &quot;https://example.org/user/order/geOrder/1&quot;</p>
  <p>but i am getting url https://example.org/user/order/create/Order/by/%7B%7B%20url(</p>
  <p>which is wrong
  we can also use</p>
  <pre><code>route('edit.order' , $order)
  </code></pre>
  <p>i dont know the method any help?</p>