title: passing variable from blade(view) to route or controller
body: <p>I want to pass the selected item's $id to my controller for doing changing on it .</p>
  
  <p>it's my index.blade.php (view)code</p>
  
  <pre><code>&lt;table&gt;
   @foreach($posts as $p)
  &lt;tr&gt;
   &lt;td&gt;{{$p-&gt;title}}&lt;/td&gt;
   &lt;td&gt;{{substr($p-&gt;body,0,120).'[...]'}}&lt;/td&gt;
  
    &lt;td&gt;{{HTML::link('posts_show',' Preview',array($p-&gt;id))}}&lt;/td&gt;
   &lt;td&gt;{{HTML::link('posts_edit','Edit',array($p-&gt;id))}}&lt;/td&gt;
   &lt;td&gt;
  {{Form::open(array('method'=&gt;'DELETE','url'=&gt;array('posts.delete',$p-&gt;id)))}}
   {{Form::submit('Delete')}}
   {{Form::close()}}
  &lt;/td&gt;
  &lt;/tr&gt;
  @endforeach
  &lt;/table&gt;
  </code></pre>
  
  <p>but it doesnt pass $id to my controller's methods. </p>
  
  <p>thanks for your time.</p>