title: Access same url with different Controller and method for API
body: <p>I am currently working on API in laravel 5.6 and I would like versioning for APIs like v1 and v2. </p>
  
  <p>my problem is I want to run one URL and access both API version, I am passing version number into HEADER and access API controller according to the version number. I am also using middle ware to check version number but not getting what I need.</p>
  
  <p>Here is my <strong>web.php</strong></p>
  
  <pre><code>Route::post('/api/getticktes/{id}', 'Api\v1\TicketController@show')-&gt;middleware('checkHeaderV1');
  </code></pre>
  
  <p><strong>Header</strong> 
  version :- v1
  version :- v2</p>
  
  <p>My controller directory is </p>
  
  <pre><code>Controller
   -Api
    --v1
    ---TicketController.php
    --v2
   ---TicketController.php
  </code></pre>