Skip to content
Discussion options

You must be logged in to vote

Think I reached an okay solution:

Registered a replacement MailManager in my own MailServiceProvider:

class MailServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->app->singleton('mail.manager', function ($app) {
            return new MailManager($app);
        });
    }
}

And then MailManager just extends the framework base, overriding the resolve method to use a custom Mailer class to adds the exclusion logic.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jameslkingsley
Comment options

Comment options

You must be logged in to vote
1 reply
@jameslkingsley
Comment options

Answer selected by jameslkingsley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants