title: How to insert a variable into a Laravel Blade Template that is inside a HTML href tag for a web.root link
body: <p>I am trying to creating a blog post with Laravel using views (<code>blog.blade.php</code>) inside HTML.</p>
  <p>The code in my laravel web.php fetches the blog posts from my local mssql server looks as follow (and works):</p>
  <pre><code>Route::get('/blog/{id}', function($id){
  $posts = DB::table('blog_posts')-&gt;get();
  return view('blog', ['id'=&gt;$id], ['posts'=&gt;$posts]); });
  </code></pre>
  <p>In the laravel views dir home.blade.php my code works with hardcoded route: url('/blog/1')
  The href link takes you to the full blog post</p>
  <pre><code>&lt;h2&gt;Blog posts:&lt;/h2&gt;
  @foreach ($posts as $post)  
      &lt;p&gt;{{ $post-&gt;title }} &lt;/p&gt; &lt;a href=&quot;{{ url('/blog/1') }}&quot; &gt;&amp;#9650; Click here to view full post&lt;/a&gt;
  @endforeach
  </code></pre>
  <p>What I am trying to do is:</p>
  <pre><code>&lt;p&gt;{{ $post-&gt;title }} &lt;/p&gt; &lt;a href=&quot;{{ url('/blog/{{ $post-&gt;id }}') }}&quot; &gt;&amp;#9650; Click here to view full post&lt;/a&gt;
  </code></pre>
  <p>How do I get the <code>$post-&gt;id</code> that is the route (1, 2, 3 or 4) and comes from the sql data base saved to the blog row to work. I get the following error returned from my xampp php server when using <code>{{ $post-&gt;id }}</code> instead of hardcoding &quot;1&quot; .</p>
  <blockquote>
  <p>D:\XAMPP Server\htdocs\cool-blog<br />
  ParseError
  Unclosed '(' does not match '}' (View: D:\XAMPP Server\htdocs\cool-blog\resources\views\home.blade.php)
  http://localhost:8000/</p>
  </blockquote>