Closed willouch closed 5 years ago
Hi,
How limit an event to specific group like :
Event::listen('martin.forms.afterSaveRecord', function (&$formdata, $component){ if($component->group == 'myGroup'){ Mail::send('martin.formsextender::mail.notification', $formdata, function($message) { $message->to('mail@mail.fr', 'Admin Person'); }); } }
Thks
I am using alias!!!! and it's works!
if($component->alias == 'myGroup'){ Mail::send('martin.formsextender::mail.notification', $formdata, function($message) { $message->to('mail@mail.fr', 'Admin Person'); });
Hi,
How limit an event to specific group like :
Event::listen('martin.forms.afterSaveRecord', function (&$formdata, $component){ if($component->group == 'myGroup'){ Mail::send('martin.formsextender::mail.notification', $formdata, function($message) { $message->to('mail@mail.fr', 'Admin Person'); }); } }
Thks