OrderPack.php 407 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zilongs
  5. * Date: 20-10-2
  6. * Time: 下午10:57
  7. */
  8. namespace App\Models;
  9. class OrderPack extends BaseModel
  10. {
  11. public function team()
  12. {
  13. return $this->belongsTo(Team::class);
  14. }
  15. public function order()
  16. {
  17. return $this->belongsTo(Order::class);
  18. }
  19. public function user(){
  20. return $this->belongsTo(User::class);
  21. }
  22. }