Community Laravel Vanilla PHP
Refactoring conditionals to callables in PHP
Recently, I came across a very handy tip by Nuno Maduro where you can refactor some of the conditionals in your code to callables to make your code more elegant and readable.
www.amitmerchant.com