{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/6413","labels_url":"https://api.github.com/repos/laravel/framework/issues/6413/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/6413/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/6413/events","html_url":"https://github.com/laravel/framework/issues/6413","id":48898943,"number":6413,"title":"[5.0] [Bug] Artisan command \"route:cache\" does not work","user":{"login":"bioteck","id":5863239,"avatar_url":"https://avatars.githubusercontent.com/u/5863239?v=3","gravatar_id":"","url":"https://api.github.com/users/bioteck","html_url":"https://github.com/bioteck","followers_url":"https://api.github.com/users/bioteck/followers","following_url":"https://api.github.com/users/bioteck/following{/other_user}","gists_url":"https://api.github.com/users/bioteck/gists{/gist_id}","starred_url":"https://api.github.com/users/bioteck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bioteck/subscriptions","organizations_url":"https://api.github.com/users/bioteck/orgs","repos_url":"https://api.github.com/users/bioteck/repos","events_url":"https://api.github.com/users/bioteck/events{/privacy}","received_events_url":"https://api.github.com/users/bioteck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-11-15T11:33:02Z","updated_at":"2015-04-05T16:55:24Z","closed_at":"2014-11-20T20:48:39Z","body":"When I run Artisan command \"route:cache\", I get this error:\r\n\r\n```\r\nexception 'ErrorException' with message 'Argument 2 passed to Illuminate\\Routing\\UrlGenerator::__construct() must be an instance of Illuminate\\Http\\Request, null given [...]\r\n```\r\n\r\nThe problem is that the instance of \"Illuminate\\Contracts\\Http\\Kernel\" is used instead of \"Illuminate\\Contracts\\\\**Console**\\Kernel\" in class \"Illuminate\\Foundation\\Console\\RouteCacheCommand\" , method \"getFreshApplicationRoutes\":\r\n\r\n```\r\nprotected function getFreshApplicationRoutes()\r\n{\r\n    $app = require $this->laravel['path.base'].'/bootstrap/app.php';\r\n\r\n    // It should be 'Illuminate\\Contracts\\Console\\Kernel'\r\n    $app->make('Illuminate\\Contracts\\Http\\Kernel')->bootstrap();\r\n\r\n    return $app['router']->getRoutes();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/89810425","html_url":"https://github.com/laravel/framework/issues/6413#issuecomment-89810425","issue_url":"https://api.github.com/repos/laravel/framework/issues/6413","id":89810425,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T16:55:24Z","updated_at":"2015-04-05T16:55:24Z","body":"@isbkch Is your app structure up to date? *Not the same as \"composer update\".*"}}