Closed ryanldy closed 3 months ago
Added feature to control email pruning 🌳
We have introduced a new 'switch' in the filament-email.php
configuration file. This switch, called prune_enabled
, allows you to decide whether or not a specific cleaning up process (pruning) should take place in managing your emails. When set to true
, the pruning will happen.
Conditional execution of code added 💻🧐
We've made improvements in a file known as FilamentEmailServiceProvider.php
. Now, a particular part of its code will only run if email pruning is enabled (prune_enabled
is true). This means the system works smarter, not harder—only doing tasks that are necessary based on your configuration. 🧠✨
So, double-check your settings if you want your unused emails to be trimmed, making sure that prune_enabled
is set to true. Keep your project clean and efficient! 😄👍
Details
This allows us to disable the scheduled command
model:prune
introduced by this package.This is needed for cases where we want to add a
->doNotMonitor()
(from spatie/laravel-schedule-monitor) to the scheduled command. With this, we will set the config to'prune_enabled' => false
then add the scheduled commandmodel:prune
to our own Kernel.php with->doNotMonitor()
.