title: Php/laravel "link_to_route" to JQuery <a> tag
body: <p>I have this in Laravel </p>
  
  <pre><code>  {{ link_to_route('users.publications.create', 'text of link', ['users' =&gt; $user-&gt;username]) }}
  </code></pre>
  
  <p>What it does is create a "&lt; a >" HTML tag to a view in the site link this:</p>
  
  <pre><code>&lt;a href="http://kinbu.co/users/luis02lopez/publications/create &gt;text of link&lt;/a&gt;
  </code></pre>
  
  <p>I want to have the same result in JQuery but it uses the "users" in the link route as other user:</p>
  
  <pre><code>            var action_call = $({{ link_to_route('users.publications.create', 'publica uno como intercambio',
              ['users' =&gt; $user-&gt;username], ['style' =&gt; 'color:blueviolet']) }}
              });
              body.append(action_call);
  </code></pre>
  
  <p>With which I have the next error: <a href="https://imgur.com/a/Lrmbg" rel="nofollow noreferrer">http://imgur.com/a/Lrmbg</a></p>
  
  <p>Do I need to create other <code>var</code> with the users name?</p>
  
  <p>If any idea will be a great help. Thanks</p>