SellerWithdrawRequest.php 391 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class SellerWithdrawRequest extends Model
  5. {
  6. public function user()
  7. {
  8. return $this->belongsTo(User::class);
  9. }
  10. public function shop()
  11. {
  12. return $this->belongsTo(Shop::class);
  13. }
  14. public function operator()
  15. {
  16. return $this->belongsTo(User::class, 'operator_id');
  17. }
  18. }