链街Dcat后台
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.

29 lines
587 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. use App\Models\ImsCjdcOrder as OrderModel;
  6. class LanzuOrderGoods extends Model
  7. {
  8. use HasDateTimeFormatter;
  9. protected $table = 'lanzu_order_goods';
  10. protected $dateFormat = 'U';
  11. public static $tableName = 'lanzu_order_goods';
  12. public function goods()
  13. {
  14. return $this->belongsTo('\App\Models\LanzuGoods','goods_id','id');
  15. }
  16. public function order()
  17. {
  18. return $this->belongsTo(new OrderModel,'order_id','id');
  19. }
  20. }