title: Laravel 5.2 route with multiple parameters
body: <p>UPDATE: thanks for the suggestions below. The URL works ok when I hit it from the browser directly. The suggestion below in terms of syntax which I understood as correct is:</p>
  
  <pre><code>{{ route('my.route', ['p1' =&gt; $var1, 'p2' =&gt; $var2, 'p3' =&gt; $var3]) }}
  </code></pre>
  
  <p>But I can see this in inspect being resolved as:</p>
  
  <pre><code>http://my.url/theroute/var1?var2=xxx&amp;var3=yyy 
  </code></pre>
  
  <p>The route format is not being generated correctly, and the variables are being passed as URL parameters rather than being part of the URL like this: </p>
  
  <pre><code>http://my.app/var1/var2/var3
  </code></pre>
  
  <p>Also, I want to use named route, and not hard code the URL. If I hard code it, it works OK. What have I missed? Thanks!</p>
  
  <hr>
  
  <p>I have a route in my Laravel app that looks like this:</p>
  
  <pre><code>http://my.app/{p1}/{p2}/{p3}
  </code></pre>
  
  <p>The route is named <code>my.route</code> in the routes list.</p>
  
  <p>In <code>Blade</code> I am trying to open this route. How do I do this. I have tried unsuccessfully:</p>
  
  <pre><code>{{ route(['my.route', $var1, $var2, $var3]) }}
  </code></pre>
  
  <p>also</p>
  
  <pre><code>{{ route(['my.route', 'p1' =&gt; $var1, 'p2' =&gt; $var2, 'p3' =&gt; $var3]) }}
  </code></pre>
  
  <p>also</p>
  
  <pre><code>{{ route('my.route', ['p1' =&gt; $var1, 'p2' =&gt; $var2, 'p3' =&gt; $var3]) }}
  </code></pre>