~Laravel | On accessors with the same name as the database field
If you have
$product->price and you want to format it, do not create the accessor function
getPriceAttribute() on your model. Why?
Consider this example.
I have a
OneToMany relation between
Major models as events