家政小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Order.php 1.0KB

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