title: Missing required parameters for [Route: bill] [URI: bill/{id}]
body: <p>I don't understand where the error is, here is my controller:</p>
  <pre><code>public function editBill(Request $req)
  {
      $customerInfo=Customer::where('id',$req-&gt;id)-&gt;first();
      $billInfo=Bill::where('id',$req-&gt;id)-&gt;get();
  
      return view('admin.editBill', compact('customerInfo','billInfo'));
  }
  </code></pre>
  <p>My Route:</p>
  <pre><code>Route::get('bill/{id}',[
      'as'=&gt;'bill',
      'uses'=&gt;'PageController@editBill'
  ]);
  </code></pre>
  <p>My blade:</p>
  <pre><code> @foreach($i as $p)
                          &lt;tr class=&quot;odd gradeX&quot; align=&quot;center&quot;&gt;
                              &lt;td&gt;{{$p-&gt;id}}&lt;/td&gt;
                              &lt;td&gt;{{$p-&gt;id_customer}}&lt;/td&gt;
                              &lt;td&gt;{{$p-&gt;product}}&lt;/td&gt;
                              &lt;td&gt;{{$p-&gt;date_order}}&lt;/td&gt;
                              &lt;td&gt;{{number_format($p-&gt;total)}} đ&lt;/td&gt;
                              &lt;td&gt;{{$p-&gt;payment}}&lt;/td&gt;
                              &lt;td&gt;{{$p-&gt;note}}&lt;/td&gt;
                              &lt;td&gt;&lt;/td&gt;
                              &lt;!-- &lt;td&gt;&lt;a href=&quot;{{route('bill')}}/{{$p-&gt;id}}&quot;&gt;Detail&lt;/a&gt;&lt;/td&gt; --&gt;
                              &lt;td&gt;&lt;a href=&quot;{{route('bill',$i-&gt;id)}}&quot;&gt;Detail&lt;/a&gt;&lt;/td&gt;
                              
                            
                          &lt;/tr&gt;
                       @endforeach  
  </code></pre>
  <p>There's the problem when I direct to Detail
  Please help me, thanks</p>