addgod/laravel-mandrill-template
Laravel integration for Mandrill templates that makes it easier to send transactional emails using Mandrill’s template system, with a simple API for incorporating templates into Laravel mail flows.
php artisan vendor:publish --tag=<package>-config. The API key normally comes from config/<package>.php, which reads an env var (e.g. <PACKAGE>_API_KEY) — keep the secret in .env, never in the committed config.Facade::call() style, the underlying client is a singleton resolved from config..env, resolve the client in a controller or command, and make one read-only call. Confirm the key is actually being picked up before wiring anything else.handle(), not in the constructor. Serialized job payloads carry your data, not the process state, so an override applied in the web request will not survive into the worker. Pass a tenant/user identifier on the job and resolve the key inside handle().Config::set() in tests: set the key in setUp() or a test helper and let the client resolve normally. Assert on the outbound request (via the package's fake or Http::fake()) rather than on internal state.'' or null may or may not reinstate the default depending on implementation.finally block or a terminating callback that restores the configured default.php artisan config:cache freezes config, and env() outside config files returns null. The runtime override sidesteps this for the key, but not for base URLs or other settings — keep those in config.dd() in production code.^2.0 and read the helper's implementation before relying on it — its exact semantics (set-only, resettable, per-instance vs. global) determine whether it is safe under concurrency.How can I help you explore Laravel packages today?