{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15118","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15118/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15118/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15118/events","html_url":"https://github.com/laravel/framework/issues/15118","id":173703775,"number":15118,"title":"Type on DatabaseManager connection() is only respected on first call to method","user":{"login":"rokkamokka","id":13039440,"avatar_url":"https://avatars.githubusercontent.com/u/13039440?v=3","gravatar_id":"","url":"https://api.github.com/users/rokkamokka","html_url":"https://github.com/rokkamokka","followers_url":"https://api.github.com/users/rokkamokka/followers","following_url":"https://api.github.com/users/rokkamokka/following{/other_user}","gists_url":"https://api.github.com/users/rokkamokka/gists{/gist_id}","starred_url":"https://api.github.com/users/rokkamokka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokkamokka/subscriptions","organizations_url":"https://api.github.com/users/rokkamokka/orgs","repos_url":"https://api.github.com/users/rokkamokka/repos","events_url":"https://api.github.com/users/rokkamokka/events{/privacy}","received_events_url":"https://api.github.com/users/rokkamokka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T06:18:24Z","updated_at":"2016-08-29T09:46:16Z","closed_at":"2016-08-29T09:46:16Z","body":"When the `connection()` method on `DatabaseManager` is called for a connection that already exists, the type argument is ignored entirely. For example, if you were to call `DB::connection('mysql::write')->...` on a connection that already had been opened normally, you wouldn't get a write connection back.\r\n\r\nIt should either be clarified in the code that you cannot change the type of an already existing connection, or it should be changed so that you _can_ change the type of an already existing connection (see #15064). "}}
{"actor":{"display_login":"GrahamCampbell"}}