Amount.php 404 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Database\Eloquent\SoftDeletes;
  5. class Amount extends Model
  6. {
  7. use SoftDeletes;
  8. protected $connection = 'mysql_w';
  9. protected $table='amount';
  10. protected $guarded=[];
  11. public function refund_money()
  12. {
  13. return $this->belongsTo(OrderRefundMoneyW::class,'transaction_id','refund_no');
  14. }
  15. }