Hey, my book is finally available. Find it here.  Eloquent Beyond The Basics!

🔥 Laravel tip: Eloquent when

Feb 15, 2022

You can use the `when` method to avoid using if statements when you want to perform a query conditionally.
tip-image-0