{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9338","labels_url":"https://api.github.com/repos/laravel/framework/issues/9338/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9338/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9338/events","html_url":"https://github.com/laravel/framework/issues/9338","id":89606230,"number":9338,"title":"Laravel 5.1 throws ReflectionException after upgrade from 5.0","user":{"login":"siannone","id":8558526,"avatar_url":"https://avatars.githubusercontent.com/u/8558526?v=3","gravatar_id":"","url":"https://api.github.com/users/siannone","html_url":"https://github.com/siannone","followers_url":"https://api.github.com/users/siannone/followers","following_url":"https://api.github.com/users/siannone/following{/other_user}","gists_url":"https://api.github.com/users/siannone/gists{/gist_id}","starred_url":"https://api.github.com/users/siannone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siannone/subscriptions","organizations_url":"https://api.github.com/users/siannone/orgs","repos_url":"https://api.github.com/users/siannone/repos","events_url":"https://api.github.com/users/siannone/events{/privacy}","received_events_url":"https://api.github.com/users/siannone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-19T16:30:28Z","updated_at":"2015-06-19T16:36:23Z","closed_at":"2015-06-19T16:36:23Z","body":"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:\r\n\r\n    ReflectionException in RouteDependencyResolverTrait.php line 57: Class App\\Http\\Requests\\User\\GetRequest does not exist\r\n\r\nBefore upgrading everything was working fine.\r\n\r\nThis is the `autoload` section of my *composer.json* file:\r\n\r\n    \"autoload\": {\r\n\t\t\"classmap\": [\r\n\t\t\t\"database\"\r\n\t\t],\r\n\t\t\"psr-4\": {\r\n\t\t\t\"App\\\\\": \"app/\",\r\n\t\t  \t\"Bloom\\\\\" : \"library/Bloom\"\r\n\t\t}\r\n\t}\r\n\r\nCould it be that I did something went wrong during the upgrade procedure?\r\n\r\nThis is how the `GetRequest` class is declared:\r\n\r\n    <?php namespace App\\Http\\Requests\\User;\r\n    \r\n    use App\\User;\r\n    use App\\Http\\Requests\\Request;\r\n    use Illuminate\\Support\\Facades\\Auth;\r\n    \r\n    /**\r\n     * Class GetRequest\r\n     * @package App\\Http\\Requests\\User\r\n     */\r\n    class GetRequest extends Request {\r\n\r\n**Update**: I just reinstalled Laravel 5.1 and moved all the old files to the new installation but I still receive the same error.\r\n\r\n**Update 2**: After running `php composer dump-autoload -o` I can notice that the file *vendor/composer/autoload_classmap.php* contains the class that Laravel is unable to find:\r\n\r\n     'App\\\\Http\\\\Requests\\\\User\\\\GetRequest' => $baseDir . '/app/Http/Requests/User/GetRequest.php',"}}