芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/Merchants/SandboxWallet.php
where('merchant_id',auth()->user()->id); } public function scopeActive($query) { return $query->where("status",true); } public function merchant() { return $this->belongsTo(Merchant::class); } public function currency() { return $this->belongsTo(Currency::class); } public function scopeSender($query) { return $query->whereHas('currency',function($q) { $q->where("sender",GlobalConst::ACTIVE); }); } }