In Laravel I have the following model:
class Product extends Model {}
which contains the function:
public function setThumbnailAttribute($value) {}
I have multiple models which contain should contain the same setThumbnailAttribute function. What is the correct way to do this using Laravel or basic PHP functionality?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kKde3d
via IFTTT
Aucun commentaire:
Enregistrer un commentaire