{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/8297","labels_url":"https://api.github.com/repos/laravel/framework/issues/8297/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8297/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/8297/events","html_url":"https://github.com/laravel/framework/issues/8297","id":66615665,"number":8297,"title":"artisan route:list no longer works without a database connection","user":{"login":"jmakenney","id":6087725,"avatar_url":"https://avatars.githubusercontent.com/u/6087725?v=3","gravatar_id":"","url":"https://api.github.com/users/jmakenney","html_url":"https://github.com/jmakenney","followers_url":"https://api.github.com/users/jmakenney/followers","following_url":"https://api.github.com/users/jmakenney/following{/other_user}","gists_url":"https://api.github.com/users/jmakenney/gists{/gist_id}","starred_url":"https://api.github.com/users/jmakenney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmakenney/subscriptions","organizations_url":"https://api.github.com/users/jmakenney/orgs","repos_url":"https://api.github.com/users/jmakenney/repos","events_url":"https://api.github.com/users/jmakenney/events{/privacy}","received_events_url":"https://api.github.com/users/jmakenney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T14:18:16Z","updated_at":"2015-04-06T21:29:06Z","closed_at":null,"body":"Since 7233adaf20dde806db8cc4691a46a6312d2010c5 `artisan route:list` requires a database connection if any controller's constructor requires a database connection for any reason (e.g. dependency injection of PasswordBroker in the default PasswordController).\r\n\r\nIn many applications, especially those which introduce multi-tenancy, having a default database set either does not make sense or is not desirable.\r\n\r\nIs it possible for there to be either an option to disable controller instantiation on `route:list`, or a graceful failure with a list of controllers that were unable to be instantiated?"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/90250983","html_url":"https://github.com/laravel/framework/issues/8297#issuecomment-90250983","issue_url":"https://api.github.com/repos/laravel/framework/issues/8297","id":90250983,"user":{"login":"amt925","id":1629694,"avatar_url":"https://avatars.githubusercontent.com/u/1629694?v=3","gravatar_id":"","url":"https://api.github.com/users/amt925","html_url":"https://github.com/amt925","followers_url":"https://api.github.com/users/amt925/followers","following_url":"https://api.github.com/users/amt925/following{/other_user}","gists_url":"https://api.github.com/users/amt925/gists{/gist_id}","starred_url":"https://api.github.com/users/amt925/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amt925/subscriptions","organizations_url":"https://api.github.com/users/amt925/orgs","repos_url":"https://api.github.com/users/amt925/repos","events_url":"https://api.github.com/users/amt925/events{/privacy}","received_events_url":"https://api.github.com/users/amt925/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T21:29:06Z","updated_at":"2015-04-06T21:29:06Z","body":"This is an issue for a project I am working on with multi-tenancy. We have the default DB connection config value to null and set it in a service provider. \r\n\r\nAs @jmakenney suggested a soft fail/warning would be nice."}}