Route precedence order
<p>I have 2 routes with their methods written in same controller[LinkController]:</p>

<pre><code>Route::get('/{country}/{category}', ['as' =&gt; 'tour.list', 'uses' =&gt; 'LinkController@tourlist']);

Route::get('/{category}/{slug}',['as' =&gt; 'single.tour', 'uses' =&gt; 'LinkController@singleTour']);
</code></pre>

<p>And my methods are:</p>

<pre><code>public function tourlist($country, $category)
{
    $tour = Tour::whereHas('category', function($q) use($category) {
            $q-&gt;where('name','=', $category);
        })
        -&gt;whereHas('country', function($r) use($country) {
            $r-&gt;where('name','=', $country);
        })
        -&gt;get();
    return view('public.tours.list')-&gt;withTours($tour);
}
public function singleTour($slug,$category)
{
    $tour = Tour::where('slug','=', $slug)
              -&gt;whereHas('category', function($r) use($category) {
            $r-&gt;where('name','=', $category);
        })
        -&gt;first();
    return view('public.tours.show')-&gt;withTour($tour);
}
</code></pre>

<p>My code in view is:</p>

<pre><code>&lt;a href="{{ route('single.tour',['category' =&gt; $tour-&gt;category-&gt;name, 'slug' =&gt; $tour-&gt;slug]) }}"&gt;{{$tour-&gt;title}}&lt;/a&gt;
</code></pre>

<p>The trouble i am having is the second route [single.tour] returns the view of the first route [tour.list]. I tried to return other view also in 2nd method but still it returns the view of first method. Does laravel have routing precedence ?</p>