Use laravel's eloquent traits to avoid code duplication
Introduction
Consider that you have a particular event that you need to fire in several places, such as deleting the model’s related image after the deletion of the model itself.
you may use the same code for posts, products, categories, ..etc.
publi...
thefeqy.hashnode.dev3 min read