In Laravel I have the following model:
class Product extends Model {}
which contains the function:
public function setThumbnailAttribute($value) {}
I have multiple models which should contain the same setThumbnailAttribute()
function. What is the correct way to do this using Laravel or basic PHP functionality?