Skip to main content

fake

Function fake 

Source
pub fn fake()
Expand description

Laravel’s Mail::fake()/assertSent() - re-exported directly from larust-mail (not through larust_support::mail, which is the production facade apps see; calling fake() from real app code would silently and permanently stop that process from ever sending real mail again). See larust_mail::fake’s own doc comments for the full design rationale. Activates recording - every send() call for the rest of this process records instead of dispatching (log/smtp), regardless of mail_driver. Idempotent: a second call in the same process is a no-op (first-writer-wins, matching every other process-wide registry in this codebase - larust_orm::connect(), the route-name registry, the event-listener registry). The recorded list from the first activation keeps accumulating; nothing resets it.