illuminate/conditionable
Add fluent, chainable conditional logic to Laravel objects. The Conditionable trait provides when/unless helpers to apply callbacks only when conditions are met, keeping pipelines and builders clean and readable without scattered if/else blocks.
The Illuminate Conditionable package.
How can I help you explore Laravel packages today?