title: the url not working in Laravel 5.4 route
body: <p>Newbie to Laravel. In my project, my base url is '<a href="http://localhost/laravel" rel="nofollow noreferrer">http://localhost/laravel</a>'. In my webpages I got a welcome page.
  When I run </p>
  
  <pre><code>Route::get('/','UserController@index');
  </code></pre>
  
  <p>It works. 
  Also </p>
  
  <pre><code>Route::get('/',function(){echo 'Succeed.';});
  </code></pre>
  
  <p>I can see the Succeed.
  When I change it into "foo" inside, everything fails.
  neither</p>
  
  <pre><code>Route::get('/foo','UserController@index');
  </code></pre>
  
  <p>nor</p>
  
  <pre><code>Route::get('/foo',function(){echo 'Succeed.';});
  </code></pre>
  
  <p>It returns the NotFoundHttpException</p>
  
  <p>My controller:</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  class UserController extends Controller
  {
      // controller version, combined with route
      public function index(){
          return view('welcome');
      }
  }
  </code></pre>
  
  <p>Also I got welcome.blade.php inside the views.
  Any suggestions for this problem?</p>