家政小程序
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.

HouseCleanOrder.php 912B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Models;
  3. /**
  4. * Class HouseCleanOrder
  5. * @package App\Models
  6. * 家居清洁订单
  7. */
  8. class HouseCleanOrder extends Order
  9. {
  10. function __construct() {
  11. parent::__construct( "house_clean_order");
  12. $fillable = [
  13. 'type', // 清洁类型
  14. 'area', // 清洁面积
  15. 'picture1', // 图片1, 保持的是服务器上的图片地址
  16. 'picture2', // 图片2, 保持的是服务器上的图片地址
  17. 'picture3', // 图片3, 保持的是服务器上的图片地址
  18. 'picture4', // 图片4, 保持的是服务器上的图片地址
  19. 'picture5', // 图片5, 保持的是服务器上的图片地址
  20. ];
  21. parent::mergeFillable(parent::getFillable(), $fillable);
  22. }
  23. /**
  24. * 获取评论
  25. */
  26. public function comments()
  27. {
  28. return $this->hasMany('App\Comment');
  29. }
  30. }