title: Laravel 5.2 Routes
body: <p>how it is done to declare a route? such as "site.domain / X / {id} / Y" ... because in my routes I have something similar</p>
  
  <pre><code>Route :: get ( '/X', function () {
     $Var = Var::all();
     return view ('pages.view') -&gt; withVars ($var);
  });
  </code></pre>
  
  <p>but it is only in the path "/X" I need access to another site after id as I said in the example </p>
  
  <blockquote>
    <p>site.domain /X/{id}/Y</p>
  </blockquote>