title: The Rest API not working in postman when requested by url
body: <p>I have start server by this cmd in the console, and it is working fine</p>
  
  <pre><code>php -S localhost:8000 -t public
  </code></pre>
  
  <p>When i call the API in postman for the lumen like this:</p>
  
  <pre><code>localhost:8000/GitHub/twinfield/public/index.php/user
  </code></pre>
  
  <p>The API work for insert but when i call like this:</p>
  
  <pre><code>localhost:8000/GitHub/twinfield/user
  </code></pre>
  
  <p>The error is given below:</p>
  
  <blockquote>
    <p>(1/1) NotFoundHttpException in RoutesRequests.php (line 226) at
    Application->handleDispatcherResponse(array(0)) in RoutesRequests.php
    (line 164) at Application->Laravel\Lumen\Concerns{closure}() in
    RoutesRequests.php (line 413) at
    Application->sendThroughPipeline(array(), object(Closure)) in
    RoutesRequests.php (line 166) at Application->dispatch(null) in
    RoutesRequests.php (line 107) at Application->run() in index.php (line
    28)</p>
  </blockquote>
  
  <p>My routes file in routes/web.php:</p>
  
  <pre><code>$router-&gt;get('/', function () use ($router) {
      //print_r('1234');die;
      return $router-&gt;app-&gt;version();
  });
  
  $router-&gt;get('user','userController@index');
  $router-&gt;get('user/{id}','userController@getuser');      
  $router-&gt;post('user','userController@createuser');
  $router-&gt;post('user/{id}','userController@updateuser');    
  $router-&gt;delete('user/{id}','userController@deleteuser');
  </code></pre>
  
  <p>I have already try to solve like this in public/index.php without success.</p>
  
  <pre><code>$request = Illuminate\Http\Request::capture();
  $app-&gt;run($request);
  </code></pre>
  
  <p>I am working in localhost with Xampp. The database is MySQL and PHP version is 7.1.</p>