{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/framework/pulls/comments/40640183","id":40640183,"diff_hunk":"@@ -113,7 +113,11 @@ protected function createMandrillDriver()\n         $client = new HttpClient;\n         $config = $this->app['config']->get('services.mandrill', []);\n \n-        return new MandrillTransport($client, $config['secret']);\n+        if (empty($config['subaccount'])) {\n+            return new MandrillTransport($client, $config['secret']);\n+        }\n+\n+        return new MandrillTransport($client, $config['secret'], $config['subaccount']);","path":"src/Illuminate/Mail/TransportManager.php","position":9,"original_position":9,"commit_id":"cc53f22fc1c3a22ea431722d5e6140d7b8a15f73","original_commit_id":"cc53f22fc1c3a22ea431722d5e6140d7b8a15f73","user":{"login":"crynobone","id":172966,"avatar_url":"https://avatars.githubusercontent.com/u/172966?v=3","gravatar_id":"","url":"https://api.github.com/users/crynobone","html_url":"https://github.com/crynobone","followers_url":"https://api.github.com/users/crynobone/followers","following_url":"https://api.github.com/users/crynobone/following{/other_user}","gists_url":"https://api.github.com/users/crynobone/gists{/gist_id}","starred_url":"https://api.github.com/users/crynobone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crynobone/subscriptions","organizations_url":"https://api.github.com/users/crynobone/orgs","repos_url":"https://api.github.com/users/crynobone/repos","events_url":"https://api.github.com/users/crynobone/events{/privacy}","received_events_url":"https://api.github.com/users/crynobone/received_events","type":"User","site_admin":false},"body":"```php\r\n$mandrill = new MandrillTransport($client, $config['secret']);\r\n\r\nif (! empty($config['subaccount'])) {\r\n    $mandrill->setSubAccount($config['subaccount']);\r\n}\r\n\r\nreturn $mandrill;\r\n```","created_at":"2015-09-29T07:06:41Z","updated_at":"2015-09-29T07:06:41Z","html_url":"https://github.com/laravel/framework/pull/10408#discussion_r40640183","pull_request_url":"https://api.github.com/repos/laravel/framework/pulls/10408","_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments/40640183"},"html":{"href":"https://github.com/laravel/framework/pull/10408#discussion_r40640183"},"pull_request":{"href":"https://api.github.com/repos/laravel/framework/pulls/10408"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/10408","id":46237043,"html_url":"https://github.com/laravel/framework/pull/10408","diff_url":"https://github.com/laravel/framework/pull/10408.diff","patch_url":"https://github.com/laravel/framework/pull/10408.patch","issue_url":"https://api.github.com/repos/laravel/framework/issues/10408","number":10408,"state":"open","locked":false,"title":"[5.1] Add Mandrill subaccounts","user":{"login":"micbenner","id":9312341,"avatar_url":"https://avatars.githubusercontent.com/u/9312341?v=3","gravatar_id":"","url":"https://api.github.com/users/micbenner","html_url":"https://github.com/micbenner","followers_url":"https://api.github.com/users/micbenner/followers","following_url":"https://api.github.com/users/micbenner/following{/other_user}","gists_url":"https://api.github.com/users/micbenner/gists{/gist_id}","starred_url":"https://api.github.com/users/micbenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micbenner/subscriptions","organizations_url":"https://api.github.com/users/micbenner/orgs","repos_url":"https://api.github.com/users/micbenner/repos","events_url":"https://api.github.com/users/micbenner/events{/privacy}","received_events_url":"https://api.github.com/users/micbenner/received_events","type":"User","site_admin":false},"body":"Am an open source virgin, go easy xP\r\n\r\nRelated to #5567\r\n\r\nReally needed this so thought I'd give it a go.\r\n\r\nWorks fully without BC breaks\r\n","created_at":"2015-09-29T05:08:01Z","updated_at":"2015-09-29T07:06:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e87ed2ad1b47b451e747d3dd06dbfc0ca6def1f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/framework/pulls/10408/commits","review_comments_url":"https://api.github.com/repos/laravel/framework/pulls/10408/comments","review_comment_url":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10408/comments","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/cc53f22fc1c3a22ea431722d5e6140d7b8a15f73","head":{"label":"micbenner:5.1","ref":"5.1","sha":"cc53f22fc1c3a22ea431722d5e6140d7b8a15f73","user":{"login":"micbenner","id":9312341,"avatar_url":"https://avatars.githubusercontent.com/u/9312341?v=3","gravatar_id":"","url":"https://api.github.com/users/micbenner","html_url":"https://github.com/micbenner","followers_url":"https://api.github.com/users/micbenner/followers","following_url":"https://api.github.com/users/micbenner/following{/other_user}","gists_url":"https://api.github.com/users/micbenner/gists{/gist_id}","starred_url":"https://api.github.com/users/micbenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micbenner/subscriptions","organizations_url":"https://api.github.com/users/micbenner/orgs","repos_url":"https://api.github.com/users/micbenner/repos","events_url":"https://api.github.com/users/micbenner/events{/privacy}","received_events_url":"https://api.github.com/users/micbenner/received_events","type":"User","site_admin":false},"repo":{"id":43344136,"name":"framework","full_name":"micbenner/framework","owner":{"login":"micbenner","id":9312341,"avatar_url":"https://avatars.githubusercontent.com/u/9312341?v=3","gravatar_id":"","url":"https://api.github.com/users/micbenner","html_url":"https://github.com/micbenner","followers_url":"https://api.github.com/users/micbenner/followers","following_url":"https://api.github.com/users/micbenner/following{/other_user}","gists_url":"https://api.github.com/users/micbenner/gists{/gist_id}","starred_url":"https://api.github.com/users/micbenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micbenner/subscriptions","organizations_url":"https://api.github.com/users/micbenner/orgs","repos_url":"https://api.github.com/users/micbenner/repos","events_url":"https://api.github.com/users/micbenner/events{/privacy}","received_events_url":"https://api.github.com/users/micbenner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/micbenner/framework","description":"","fork":true,"url":"https://api.github.com/repos/micbenner/framework","forks_url":"https://api.github.com/repos/micbenner/framework/forks","keys_url":"https://api.github.com/repos/micbenner/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/micbenner/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/micbenner/framework/teams","hooks_url":"https://api.github.com/repos/micbenner/framework/hooks","issue_events_url":"https://api.github.com/repos/micbenner/framework/issues/events{/number}","events_url":"https://api.github.com/repos/micbenner/framework/events","assignees_url":"https://api.github.com/repos/micbenner/framework/assignees{/user}","branches_url":"https://api.github.com/repos/micbenner/framework/branches{/branch}","tags_url":"https://api.github.com/repos/micbenner/framework/tags","blobs_url":"https://api.github.com/repos/micbenner/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/micbenner/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/micbenner/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/micbenner/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/micbenner/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/micbenner/framework/languages","stargazers_url":"https://api.github.com/repos/micbenner/framework/stargazers","contributors_url":"https://api.github.com/repos/micbenner/framework/contributors","subscribers_url":"https://api.github.com/repos/micbenner/framework/subscribers","subscription_url":"https://api.github.com/repos/micbenner/framework/subscription","commits_url":"https://api.github.com/repos/micbenner/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/micbenner/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/micbenner/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/micbenner/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/micbenner/framework/contents/{+path}","compare_url":"https://api.github.com/repos/micbenner/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/micbenner/framework/merges","archive_url":"https://api.github.com/repos/micbenner/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/micbenner/framework/downloads","issues_url":"https://api.github.com/repos/micbenner/framework/issues{/number}","pulls_url":"https://api.github.com/repos/micbenner/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/micbenner/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/micbenner/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/micbenner/framework/labels{/name}","releases_url":"https://api.github.com/repos/micbenner/framework/releases{/id}","created_at":"2015-09-29T04:09:54Z","updated_at":"2015-09-29T04:10:00Z","pushed_at":"2015-09-29T05:15:23Z","git_url":"git://github.com/micbenner/framework.git","ssh_url":"git@github.com:micbenner/framework.git","clone_url":"https://github.com/micbenner/framework.git","svn_url":"https://github.com/micbenner/framework","homepage":"http://laravel.com","size":68226,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"5.1"}},"base":{"label":"laravel:5.1","ref":"5.1","sha":"27e7a9b6d26728b9c16335b56a5e71a56543ef33","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":7548986,"name":"framework","full_name":"laravel/framework","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/framework","description":"","fork":false,"url":"https://api.github.com/repos/laravel/framework","forks_url":"https://api.github.com/repos/laravel/framework/forks","keys_url":"https://api.github.com/repos/laravel/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/framework/teams","hooks_url":"https://api.github.com/repos/laravel/framework/hooks","issue_events_url":"https://api.github.com/repos/laravel/framework/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/framework/events","assignees_url":"https://api.github.com/repos/laravel/framework/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/framework/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/framework/tags","blobs_url":"https://api.github.com/repos/laravel/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/framework/languages","stargazers_url":"https://api.github.com/repos/laravel/framework/stargazers","contributors_url":"https://api.github.com/repos/laravel/framework/contributors","subscribers_url":"https://api.github.com/repos/laravel/framework/subscribers","subscription_url":"https://api.github.com/repos/laravel/framework/subscription","commits_url":"https://api.github.com/repos/laravel/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/framework/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/framework/merges","archive_url":"https://api.github.com/repos/laravel/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/framework/downloads","issues_url":"https://api.github.com/repos/laravel/framework/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/framework/labels{/name}","releases_url":"https://api.github.com/repos/laravel/framework/releases{/id}","created_at":"2013-01-10T21:27:28Z","updated_at":"2015-09-29T00:38:41Z","pushed_at":"2015-09-29T05:15:23Z","git_url":"git://github.com/laravel/framework.git","ssh_url":"git@github.com:laravel/framework.git","clone_url":"https://github.com/laravel/framework.git","svn_url":"https://github.com/laravel/framework","homepage":"http://laravel.com","size":68226,"stargazers_count":4125,"watchers_count":4125,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2371,"mirror_url":null,"open_issues_count":67,"forks":2371,"open_issues":67,"watchers":4125,"default_branch":"5.1"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/10408"},"html":{"href":"https://github.com/laravel/framework/pull/10408"},"issue":{"href":"https://api.github.com/repos/laravel/framework/issues/10408"},"comments":{"href":"https://api.github.com/repos/laravel/framework/issues/10408/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/framework/pulls/10408/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/framework/pulls/10408/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/framework/statuses/cc53f22fc1c3a22ea431722d5e6140d7b8a15f73"}}}}