Я не могу добавить конструктор в свой прослушиватель событий. В Laravel 11 также нет поставщика EventService. Мне нужен пример
public function handle(NewUserEvent $event): void
{
Mail::send('3_Emails.1_CommonMailTemplate', $mailData, function ($message) use ($Name, $Email) {
$message->to($Email)
->subject("Contact | $Name")
->cc('example@gmail.com') // Add CC recipient
->bcc('example@gmail.com'); // Add BCC recipient
});
}
here i cant get $event in it.
Подробнее здесь: https://stackoverflow.com/questions/782 ... laravel-11