RefundRequest.php 483 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class RefundRequest extends Model
  5. {
  6. public function orderDetail()
  7. {
  8. return $this->belongsTo(OrderDetail::class);
  9. }
  10. public function user()
  11. {
  12. return $this->belongsTo(User::class);
  13. }
  14. public function seller()
  15. {
  16. return $this->belongsTo(User::class, 'seller_id');
  17. }
  18. public function order()
  19. {
  20. return $this->belongsTo(Order::class);
  21. }
  22. }