家政小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Order extends Model
  5. {
  6. public $order_type = "";
  7. function __construct($order_type = "") {
  8. $this->order_type = $order_type;
  9. }
  10. protected $fillable = [
  11. 'wechat_id', // 微信号id(open_id)
  12. 'address', // 服务地址
  13. 'contact', // 联系人
  14. 'phone', //联系电话
  15. 'status', // 订单状态, 0.待处理 1.待支付 2.已支付
  16. 'price', // 订单价格
  17. 'photo', // 显示的图片
  18. 'comment_id', // 评论id
  19. 'comment', // 评论
  20. 'paid_at', // 支付时间,
  21. 'classify', //订单类型,分类
  22. 'classify1', //分类1
  23. 'classify2', //分类2
  24. ];
  25. public function setFillable($fillable) {
  26. $this->fillable = $fillable;
  27. }
  28. public function getFillable() {
  29. return $this->fillable;
  30. }
  31. public function mergeFillable($fillable) {
  32. $this->fillable = array_merge($this->fillable, $fillable);
  33. }
  34. }