rudolfbruder/laravel-snip
Laravel Snip is a lightweight package for creating and managing reusable snippets in Laravel applications. It provides a simple API and Blade-friendly rendering so you can store, organize, and reuse content with minimal setup. Quick to install and easy to extend.
SNIP_MAIL_CATCH=true as the standard dev/staging mail interception mechanism to prevent accidental customer emails, especially in apps that select mailers per message (Mail::mailer('shop_sk')) rather than relying only on the default mailer..env conventions around SNIP_MAIL_CATCH=true; add onboarding guidance to restart queue workers after enabling it.php artisan vendor:publish --tag=snip-assets --force) to see the updated Mail tab guidance and inbox UI.Consider adoption when:
SNIP_MAIL_CATCH=true flag is specifically relevant because MAIL_MAILER=snip only covered the default mailer.Look elsewhere when:
For executives: This release closes a meaningful safety gap in non-production environments. Previously, apps that chose a mailer per message could still send real email from dev or staging; SNIP_MAIL_CATCH=true catches every mail regardless of mailer. That reduces the risk of accidentally emailing customers and speeds up QA. It is an additive, low-risk update with no apparent breaking changes, though assets must be re-published.
For engineering: v0.3.6 makes mail catching reliable across all mailers, not just the default. The playground Mail tab now shows an inbox and can simulate a queue worker catching mail, which helps validate queued-mail behavior. Update the recommended setup to use SNIP_MAIL_CATCH=true, remind teams to restart queue workers after enabling it, and re-publish assets with php artisan vendor:publish --tag=snip-assets --force.
How can I help you explore Laravel packages today?