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

HouseApplianceCleanOrder.php 538B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Models;
  3. /**
  4. * Class HouseApplianceCleanOrder
  5. * @package App\Models
  6. * 家电清洁
  7. */
  8. class HouseApplianceCleanOrder extends Order
  9. {
  10. function __construct() {
  11. parent::__construct( "house_appliance_clean_order");
  12. $fillable = ['appliances'];// 项目, 数组形式,多个数量则出现多次
  13. parent::mergeFillable(parent::getFillable(), $fillable);
  14. }
  15. /**
  16. * 获取评论
  17. */
  18. public function comments()
  19. {
  20. return $this->hasMany('App\Comment');
  21. }
  22. }