title: Please help me to solve this route errors
body: <p>Route</p>
  
  <pre><code>Route::get('board/{category}', ['as' =&gt; 'board.showByCate', 'uses' =&gt;'BoardController@showByCate']);
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function cate() {
  
      $categories = category::all();
  
      return view('welcome', compact('categories'));
  
  }
  
  public function showByCate($category) {
  
      $boards = board::where('category', '=', $category)-&gt;orderBy('created_at', 'desc')-&gt;paginate(3)-&gt;get();
  
      $allBoards = board::orderBy('created_at', 'desc')-&gt;paginate(3);
  
      return view('board.index', compact('boards', 'allBoards'));
  
  }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>       &lt;ul class="list-inline"&gt;
                      &lt;li&gt;
                          &lt;a href="{{ route('board.showByCate') }}"&gt;all&lt;/a&gt;
                      &lt;/li&gt;
                      @foreach($categories as $category)
                          &lt;li&gt;
                              &lt;a href="{{ route('board.showByCate', $category-&gt;category) }}"&gt;
                                  {{$category-&gt;category}}
                              &lt;/a&gt;
                          &lt;/li&gt;
                      @endforeach
                  &lt;/ul&gt;
  </code></pre>
  
  <p>this codes bring errors..
  1/2
  UrlGenerationException in UrlGenerationException.php line 17:
  Missing required parameters for [Route: board.showByCate] [URI: board/{category}].
  2/2
  ErrorException in UrlGenerationException.php line 17:
  Missing required parameters for [Route: board.showByCate] [URI: board/{category}]. (View: /home/vagrant/Code/Laravel/resources/views/welcome.blade.php)</p>
  
  <p>how can I solve this error//</p>