Conditionally executing callbacks using Conditionable trait in Laravel 8.x
June 7, 2021 — If you have been working with Laravel lately, you might have used this feature called “conditional clauses” using which you will be able to run a certain callback when a condition becomes true
.