title: Route is not working when I access laravel application through localhost
body: <p>I have a laravel project and I can access this application through virtual server (tracking.com) locally. When I run through virtual server all the routes are working perfectly. But when I access the application through localhost (localhost/tracking/public) routes are not working except home page. </p>
  
  <p>Home Route</p>
  
  <pre><code>Route::get('/', 'DashboardController@info')-&gt;middleware('auth');
  </code></pre>
  
  <p>Non-working routes</p>
  
  <pre><code>Route::resource('depot', 'DepotsController')-&gt;middleware('auth')
  </code></pre>
  
  <p>All routes are working well with virtual server. With virtual server both routes are working home page(tracking.com) and depots page (tracking.com/depot).</p>
  
  <p>but with localhost only (localhost/tracking/public) is working and (localhost/depot) is not working. </p>