芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Models/Merchants/MerchantNotification.php
'object', ]; protected $with = [ 'merchant', ]; public function merchant() { return $this->belongsTo(Merchant::class); } public function scopeGetByType($query,$types) { if(is_array($types)) return $query->whereIn('type',$types); } public function scopeNotAuth($query) { $query->where("merchant_id","!=",auth()->user()->id); } public function scopeAuth($query) { $query->where("merchant_id",auth()->user()->id); } }