I can't add constructor in my event listener.Laravel 11 there is no EventService provider also. I need an example for this
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('[email protected]') // Add CC recipient
->bcc('[email protected]'); // Add BCC recipient
});
}
here i cant get $event in it.