#traits
Read more stories on Hashnode
Articles with this tag
What are traits? Traits are a mechanism for code reuse. Traits allow you to create methods that can be used in multiple classes to avoid code...
Let's say you want to use multiple traits in your models to reuse common code such as applying UUIDs and settings global query scopes like this: use...