We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I have this error when i tried to send an invitation to my user.
When I upgraded to version 4.x, I had to change the event listener like that:
Before
// App\Providers\EventServiceProvider protected $listen = [ 'junaidnasir.larainvite.invited' => [ 'App\Listeners\UserInvite', ], ];
After
// App\Providers\ protected $listen = [ Invited::class => [ 'App\Listeners\UserInvite', ], ];
After that, I had the following error: Undefined property: Junaidnasir\Larainvite\Events\Invited::$email
Undefined property: Junaidnasir\Larainvite\Events\Invited::$email
For now, I found this fix:
// App\Listeners\UserInvite public function handle($invitation) { Mail::to($invitation->email)->send(new UserInviteMail($invitation->code, $invitation->email)); }
// App\Listeners\UserInvite public function handle($invitation) { Mail::to($invitation->invitation->email)->send(new UserInviteMail($invitation->invitation->code, $invitation->invitation->email)); }
The text was updated successfully, but these errors were encountered:
Ran into the same problem was able to fix with BenjaminDelacombaz fix.
Sorry, something went wrong.
Same issue here. Solved with the proposed solution by BenjaminDelacombaz.
No branches or pull requests
Hello,
I have this error when i tried to send an invitation to my user.
When I upgraded to version 4.x, I had to change the event listener like that:
Before
After
After that, I had the following error:
Undefined property: Junaidnasir\Larainvite\Events\Invited::$email
For now, I found this fix:
Before
After
The text was updated successfully, but these errors were encountered: