海南旅游SAAS
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.

27 lines
495 B

4 years ago
4 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. class IndustryOrder extends BaseModel
  6. {
  7. use HasDateTimeFormatter;
  8. use SoftDeletes;
  9. public function supplier()
  10. {
  11. return $this->belongsTo(Supplier::class)->withTrashed();
  12. }
  13. public function agent()
  14. {
  15. return $this->belongsTo(Agent::class)->withTrashed();
  16. }
  17. public function industryProduct()
  18. {
  19. return $this->belongsTo(IndustryProduct::class);
  20. }
  21. }