@amitsolanki24_ To avoid repeating the filterEmail function every time you send an email, you can achieve the desired filtering by creating a custom mailer
To filter outgoing emails in Laravel 11, particularly on a staging server, employ a custom mailer or middleware to intercept and alter email recipients before they are sent.