Performance: Mail configuration
MEDIUM IMPACT
This affects the backend response time and user experience related to sending emails, impacting perceived speed and interaction responsiveness.
Mail::to($user->email)->queue(new WelcomeMail($user));
Mail::to($user->email)->send(new WelcomeMail($user));
| Pattern | Backend Delay | Request Blocking | User Interaction Impact | Verdict |
|---|---|---|---|---|
| Synchronous mail sending | High (200-500ms+) | Blocks request | Delays user interaction | [X] Bad |
| Asynchronous mail queueing | Low (immediate response) | Non-blocking | Smooth user interaction | [OK] Good |