Suddenly I feel to improve my knowledge about Clean architecture in PHP. As of, I started reading some books, tutorials, and screencasts. There are lots of content around the internet. I plan to write my extractions that I have learned from those sources. Hopefully, it will be helpful for you. Today, I will share in what context clean PHP architecture is suitable for your project.
In this series to tutorials, my plan is to take some real-life code and try to refactor the code as much as I can. Today, I will show you how to reduce unnecessary condition from the Laravel Model.