title: Laravel 5.1 throws ReflectionException after upgrade from 5.0
body: <p>I have recently upgraded Laravel to version 5.1 from 5.0, but whenever I send an API response to the server, it throws an exception like the following:</p>
  
  <pre><code>ReflectionException in RouteDependencyResolverTrait.php line 57: Class App\Http\Requests\User\GetRequest does not exist
  </code></pre>
  
  <p>Before upgrading everything was working fine.</p>
  
  <p>This is the <code>autoload</code> section of my <em>composer.json</em> file:</p>
  
  <pre><code>"autoload": {
      "classmap": [
          "database"
      ],
      "psr-4": {
          "App\\": "app/",
          "Bloom\\" : "library/Bloom"
      }
  }
  </code></pre>
  
  <p>Could it be that I did something went wrong during the upgrade procedure?</p>
  
  <p>This is how the <code>GetRequest</code> class is declared:</p>
  
  <pre><code>&lt;?php namespace App\Http\Requests\User;
  
  use App\User;
  use App\Http\Requests\Request;
  use Illuminate\Support\Facades\Auth;
  
  /**
   * Class GetRequest
   * @package App\Http\Requests\User
   */
  class GetRequest extends Request {
  </code></pre>
  
  <p><strong>Update</strong>: I just reinstalled Laravel 5.1 and moved all the old files to the new installation but I still receive the same error.</p>
  
  <p><strong>Update 2</strong>: After running <code>php composer dump-autoload -o</code> I can notice that the file <em>vendor/composer/autoload_classmap.php</em> contains the class that Laravel is unable to find:</p>
  
  <pre><code> 'App\\Http\\Requests\\User\\GetRequest' =&gt; $baseDir . '/app/Http/Requests/User/GetRequest.php',
  </code></pre>
  
  <p><strong>Update 3</strong>: I tried also to create a new request using</p>
  
  <pre><code>php artisan make:request TestRequest
  </code></pre>
  
  <p>and then using the TestRequest in the UserController.php</p>
  
  <pre><code>/**
   * @param GetRequest $request
   * @return \Symfony\Component\HttpFoundation\Response
   */
  public function get(TestRequest $request)
  {
      if(!$this-&gt;userRepository-&gt;getUser()) return $this-&gt;respondOK('User not found.');
  
      $user = $this-&gt;userRepository-&gt;getUser();
  
      return $this-&gt;respondOK('', (new UserTransformer())-&gt;transform($user-&gt;toArray()));
  }
  </code></pre>
  
  <p>but I still receive the same error.</p>