Adding attributes to models only (non DB columns)

后端 未结 0 1051
忘掉有多难
忘掉有多难 2020-12-24 06:21

I would like to add an attribute token to my cart model. Note that I do not want this attribute as a DB column. Please see code below

class Cart          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题