Skip to content

Sandbox mode ​

Use sandbox mode to fake side effects for one request, so you can test endpoints that send mail, notifications or queued jobs without sending or queuing anything.

Steps ​

  1. Open Request options in the endpoint bar.
  2. Open the Sandbox sub-menu and check the effects to fake. All of them start unchecked.
  3. Send the request.
  4. Open the Insight tab and then its Sandbox tab to see what was captured.

The Sandbox tab

OptionWhat it does
MailThe message is not sent.
NotificationsThe notification is not sent.
Queued jobsThe job is not queued.
EventsEvents are not dispatched.

The Sandbox tab groups what was faked by mail, notifications and queued jobs. A group says so when nothing was captured. A mail shows its subject, recipients and body.

Faked effects are listed only in the Sandbox tab. The Mail, Notifications and Jobs tabs list only what was really sent or queued.

Caution

Faking events also stops model events, so observers and listeners do not run.