Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mailable chain another mailable #483

Closed
lloricode opened this issue Jun 24, 2021 · 3 comments
Closed

mailable chain another mailable #483

lloricode opened this issue Jun 24, 2021 · 3 comments
Assignees

Comments

@lloricode
Copy link

Describe the bug
when try

ray()->mailable(new ClassOne($this))
     ->mailable(new ClassTwo($this));

only result of ClassTwo will appear on ray app

Versions
Ray version (you can see this in "About Ray"): 1.15.0

You can use composer show to get the version numbers of:

  • spatie/ray package version: 1.27.1
  • spatie/laravel-ray package version (if applicable): 1.22.0

PHP version:
Laravel version (if applicable): 8.48.1

To Reproduce
dispatch mail using ray()->mailable() in chain call

Expected behavior
this must be same result in none chaining call, like sample below

ray()->mailable(new ClassOne($this));
ray()->mailable(new ClassTwo($this));

Desktop (please complete the following information):

  • OS: [e.g. macOS]: Linuxmint
  • Version [e.g. 22] 20.1
@Nielsvanpach
Copy link
Member

You should use

ray()->mailable(new ClassOne($this));
ray()->mailable(new ClassTwo($this));

In the meantime, I'll look into allowing multiple mailable arguments

@lloricode
Copy link
Author

You should use

ray()->mailable(new ClassOne($this));
ray()->mailable(new ClassTwo($this));

In the meantime, I'll look into allowing multiple mailable arguments

yes ill use that way, I just notice this and maybe it could help

@lloricode
Copy link
Author

lloricode commented Jun 24, 2021

I did not notice, i crated issue in different repository,

anyways thanks to this spatie/laravel-ray#204, now has a nicer way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants