123456789101112131415161718192021 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\SoftDeletes;
- class Amount extends Model
- {
- use SoftDeletes;
- protected $connection = 'mysql_w';
- protected $table='amount';
- protected $guarded=[];
- public function refund_money()
- {
- return $this->belongsTo(OrderRefundMoneyW::class,'transaction_id','refund_no');
- }
- }
|