Enamul Haque·Apr 25, 2024Polymorphism word is derived from two Greek words: “poly” meaning “many” and “morphism” meaning…Laravel’s polymorphic relationships allow a model to belong to more than one other model on a single association. This is particularly…
Enamul Haque·Apr 11, 2024Simplifying if-else in PHP with Ternary and Null Safe OperatorsRecently, I gone through some articles, blogs and of course real life use to refactor existing PHP code. When refactoring them, I found…