mercredi 7 août 2019

Accessors on a pivot table in many to many polymorphic

I have a polymorphic relationship using a pivot table with some simple columns.

The pivot table has created_at and updated_at. Is there anyway I can set Accessors on those, so I can have them formatted in the collection without looping through it?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire