{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/lumen-framework/issues/590","repository_url":"https://api.github.com/repos/laravel/lumen-framework","labels_url":"https://api.github.com/repos/laravel/lumen-framework/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/laravel/lumen-framework/issues/590/comments","events_url":"https://api.github.com/repos/laravel/lumen-framework/issues/590/events","html_url":"https://github.com/laravel/lumen-framework/issues/590","id":215863829,"number":590,"title":"Queueing mail throws an error","user":{"login":"michaeldzjap","id":2669912,"avatar_url":"https://avatars2.githubusercontent.com/u/2669912?v=4","gravatar_id":"","url":"https://api.github.com/users/michaeldzjap","html_url":"https://github.com/michaeldzjap","followers_url":"https://api.github.com/users/michaeldzjap/followers","following_url":"https://api.github.com/users/michaeldzjap/following{/other_user}","gists_url":"https://api.github.com/users/michaeldzjap/gists{/gist_id}","starred_url":"https://api.github.com/users/michaeldzjap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaeldzjap/subscriptions","organizations_url":"https://api.github.com/users/michaeldzjap/orgs","repos_url":"https://api.github.com/users/michaeldzjap/repos","events_url":"https://api.github.com/users/michaeldzjap/events{/privacy}","received_events_url":"https://api.github.com/users/michaeldzjap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-03-21T20:13:51Z","updated_at":"2017-11-07T18:18:25Z","closed_at":null,"author_association":"NONE","body":"I'm trying to queue a mailable in Lumen 5.4, but run into a\r\n\r\n```\r\nFatalThrowableError in Mailable.php line 133:\r\nType error: Argument 1 passed to Illuminate\\Mail\\Mailable::queue() must be an instance of Illuminate\\Contracts\\Queue\\Factory, null given, called in /home/vagrant/Code/.../vendor/illuminate/mail/Mailer.php on line 317\r\n```\r\n\r\nUsing `app('mailer')->to(env('MAIL_TO_ADDRESS'))->send();` works fine. I've checked that my mailable uses both `Queueable` and `SerializesModels`, extends `Mailable` and implements `ShouldQueue`. [This](https://github.com/laravel/framework/issues/15919) might be related?\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/lumen-framework/issues/comments/342573825","html_url":"https://github.com/laravel/lumen-framework/issues/590#issuecomment-342573825","issue_url":"https://api.github.com/repos/laravel/lumen-framework/issues/590","id":342573825,"user":{"login":"hakuno","id":18008344,"avatar_url":"https://avatars0.githubusercontent.com/u/18008344?v=4","gravatar_id":"","url":"https://api.github.com/users/hakuno","html_url":"https://github.com/hakuno","followers_url":"https://api.github.com/users/hakuno/followers","following_url":"https://api.github.com/users/hakuno/following{/other_user}","gists_url":"https://api.github.com/users/hakuno/gists{/gist_id}","starred_url":"https://api.github.com/users/hakuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hakuno/subscriptions","organizations_url":"https://api.github.com/users/hakuno/orgs","repos_url":"https://api.github.com/users/hakuno/repos","events_url":"https://api.github.com/users/hakuno/events{/privacy}","received_events_url":"https://api.github.com/users/hakuno/received_events","type":"User","site_admin":false},"created_at":"2017-11-07T18:18:25Z","updated_at":"2017-11-07T18:18:25Z","author_association":"CONTRIBUTOR","body":"@tremby Did you make it from a fresh installation? Because my upgrade to 5.5 still doesn't go with your workaround.\r\n\r\nAnd, yes, you might use the service provider since only mail provider will depend on that."}}
{"actor":{"display_login":"hakuno"}}