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

OptionOrder.php 434B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class OptionOrder extends Order
  5. {
  6. function __construct() {
  7. parent::__construct("option_order");
  8. $fillable = [
  9. 'options',
  10. ];
  11. parent::mergeFillable(parent::getFillable(), $fillable);
  12. }
  13. /**
  14. * 获取评论
  15. */
  16. public function comments()
  17. {
  18. return $this->hasMany('App\Comment');
  19. }
  20. }